vitalets / react-native-extended-stylesheet

Extended StyleSheets for React Native
MIT License
2.93k stars 132 forks source link

App Crashes When Percentage is used [Expo] #58

Closed kenshinman closed 6 years ago

kenshinman commented 6 years ago

Hi, thanks for this package. I just that my app crashes whenever i declare a percentage value. Example code below.

 import EStyleSheet from "react-native-extended-stylesheet";

const styles = EStyleSheet.create({
  root: {
    flex: 1
  },
  meetupCard: {
    height: 200,
    width: 175,
    marginLeft: '1.5%',
        backgroundColor: "#f56d79"
      }
    });

    export default styles;

When ever I comment out the percentage line, Everything works find.

Edit

Seems this only happens when I use it on any margin value Is this a bug? Thakns

vitalets commented 6 years ago

Hi @kenshinman !

could you show a screenshot with error? I've tested with that snack https://snack.expo.io/ryjR31tpZ - it works for me. Maybe error was due some caching of styles inside Expo app.

vitalets commented 6 years ago

Re-checked again - everything works. Feel free to re-open if the problem still exists.