-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App crashes when using percentage styles #77
Comments
I'm on 0.8.1 but it crashes all the same? |
@AnthonyLamot could you show Expo link or source code? |
@vitalets was following a tutorial (https://github.com/EQuimper/youtubeMeetupAppReactNativeNode) and was making my own version of this file: https://github.com/EQuimper/youtubeMeetupAppReactNativeNode/blob/master/meetupme-mobile/src/screens/home/components/styles/MyMeetupsList.js I switched back to ESS 0.0.4 cause I saw the guy who created the tutorial was using that one without issue. |
I see that expo-sdk-16 from the example uses RN 0.43.2 that does not support percent values natively. The support was added in RN 0.44 and EStyleSheet started to proxy pure percents in #32 since v0.5.0. Currently I see 3 options:
|
Cool. Honestly I'd go with option 3. I'll update my RN version in this project. 😄 |
Ok! Let me know if it's ok after upgrading RN. |
I got it to work with:
Hope that helps @vitalets ! |
Hi, I'm trying to use the library but it suddenly crash when I use percentage styles.
Please see the snack below (it's the same example given in README):
https://snack.expo.io/@lrnz09/estylesheet-percentage-crash
The text was updated successfully, but these errors were encountered: