Closed harwinvoid closed 6 years ago
Hi! It's because of RN version that does not support percents natively. I will think what we can do. By the way, could you share the reasons why you don't update RN?
Related: https://github.com/vitalets/react-native-extended-stylesheet/issues/32
thank a lot。 the reason is a long story
Anyway, the workaround can be done by value as a function:
export default EStyleSheet.create({
container: {
fontSize: '2rem',
width: () => 0.1 * Dimensions.get('window').width
},
});
Feel free to reopen if needed.
RN version 0.30 ios 11