Emil Sjolander
3f49e743be
Add percentage support to react native
Summary:
Adds support for percentage value in react native.
syntax: property: 100 | property | '100%'
supported properties:
padding
margin
width
height
minWidth
minHeight
maxWidth
maxHeight
flexBasis
```
class Playground extends React.Component {
render() {
return (
<View style={{backgroundColor: 'white', padding: 10, paddingTop: 30, height: '100%'}}>
<Text>
If you want to quickly test out something,
open the Playground.js file and start coding.
</Text>
<View style={{backgroundColor: 'red', height: 50, width: 50}}/>
<View style={{backgroundColor: 'blue', height: '50%', width: '50%'}}/>
</View>
);
}
}
```
Reviewed By: astreet
Differential Revision: D4376549
fbshipit-source-id: c41d68a7555396f95d063a7527ee081773ac56dc
2017-01-11 03:58:37 -08:00
..
2016-06-27 17:13:27 -07:00
2016-06-27 17:13:27 -07:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2016-01-07 12:03:17 -08:00
2015-12-01 09:00:28 -08:00
2016-08-10 13:13:34 -07:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2016-01-04 06:38:30 -08:00
2016-11-23 07:58:39 -08:00
2016-04-26 04:21:39 -07:00
2016-11-23 07:58:39 -08:00
2016-11-07 17:14:02 -08:00
2016-11-23 07:58:39 -08:00
2016-07-07 12:44:14 -07:00
2016-07-12 05:59:12 -07:00
2015-11-26 08:54:16 -08:00
2016-11-23 07:58:39 -08:00
2017-01-09 19:28:27 -08:00
2015-11-26 08:54:16 -08:00
2015-11-26 08:54:16 -08:00
2016-11-23 07:58:39 -08:00
2017-01-09 00:13:33 -08:00
2016-09-27 06:28:33 -07:00
2016-10-05 07:28:44 -07:00
2016-11-23 07:58:39 -08:00
2017-01-09 00:13:33 -08:00
2016-11-23 07:58:39 -08:00
2016-11-18 14:43:31 -08:00
2016-11-23 07:58:39 -08:00
2016-05-06 03:18:20 -07:00
2016-11-23 07:58:39 -08:00
2016-09-08 17:58:50 -07:00
2016-11-23 07:58:39 -08:00
2016-09-08 17:58:50 -07:00
2016-11-23 07:58:39 -08:00
2016-12-03 18:58:29 -08:00
2016-11-23 07:58:39 -08:00
2016-08-05 12:44:21 -07:00
2016-11-23 07:58:39 -08:00
2016-09-27 06:28:33 -07:00
2016-11-23 07:58:39 -08:00
2016-11-07 15:58:43 -08:00
2016-11-23 07:58:39 -08:00
2016-04-16 15:15:25 -07:00
2016-11-23 07:58:39 -08:00
2016-12-03 04:44:10 -08:00
2016-07-11 13:34:02 -07:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2017-01-09 19:28:27 -08:00
2016-11-23 07:58:39 -08:00
2015-11-03 14:49:30 -08:00
2016-11-23 07:58:39 -08:00
2016-04-26 04:21:39 -07:00
2017-01-11 03:58:37 -08:00
2017-01-11 03:58:37 -08:00
2016-11-23 07:58:39 -08:00
2015-12-21 10:30:39 -08:00
2016-11-23 07:58:39 -08:00
2015-12-21 10:30:39 -08:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2016-05-03 05:40:29 -07:00
2016-12-19 06:28:40 -08:00
2016-11-23 07:58:39 -08:00
2016-12-21 03:28:28 -08:00
2016-11-23 07:58:39 -08:00
2016-12-19 06:28:40 -08:00
2016-11-23 07:58:39 -08:00
2016-11-29 12:28:55 -08:00
2016-12-19 06:28:40 -08:00
2016-12-19 06:28:40 -08:00
2016-11-23 07:58:39 -08:00
2016-11-18 14:43:31 -08:00
2016-11-23 07:58:39 -08:00
2017-01-11 03:58:37 -08:00
2017-01-06 20:29:02 -08:00
2017-01-06 20:29:02 -08:00
2016-11-23 07:58:39 -08:00
2017-01-06 20:29:02 -08:00
2016-11-23 07:58:39 -08:00
2016-09-27 06:28:33 -07:00
2016-11-18 14:43:31 -08:00
2016-11-23 07:58:39 -08:00
2016-11-18 14:43:31 -08:00