-
-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Labels
Description
Percent values are supported natively since React Native 0.43. EStyleSheet passes them through to original StyleSheet except cases, when you use calculations with percents, e.g. "100% - 20". Percents are calculated relative to screen width/height on application launch.
The way library handles it right now seems to be confusing. How about splitting percentages based on parent and screen to two (or three) separate units.
My proposal would be to handle it the way it's working on the web, so:
X%- uses native RN implementation.Xvw- uses screen's widthXvh- uses screen's height
krizzu, jukben and neikerneiker