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-12-07 15:28:29 -08:00
2016-12-07 15:28:29 -08:00
2017-01-09 15:28:31 -08:00
2016-12-02 15:28:31 -08:00
2016-10-11 07:43:52 -07:00
2016-12-07 17:13:42 -08:00
2016-12-18 17:13:38 -08:00
2016-11-04 05:43:44 -07:00
2016-12-22 17:13:31 -08:00
2017-01-09 02:43:35 -08:00
2016-12-11 00:43:30 -08:00
2017-01-09 03:13:28 -08:00
2016-04-21 09:28:23 -07:00
2016-11-20 17:58:29 -08:00
2016-12-07 23:58:25 -08:00
2016-12-07 15:28:29 -08:00
2017-01-04 02:43:30 -08:00
2017-01-03 13:43:35 -08:00
2016-12-18 17:13:38 -08:00
2016-11-02 12:29:15 -07:00
2016-11-25 15:28:28 -08:00
2016-08-09 06:43:46 -07:00
2016-12-07 15:28:29 -08:00
2016-12-14 10:28:33 -08:00
2017-01-05 21:59:19 -08:00
2016-12-15 21:13:38 -08:00
2016-12-14 08:28:42 -08:00
2016-12-13 18:58:34 -08:00
2017-01-09 00:43:31 -08:00
2016-12-07 15:28:29 -08:00
2016-12-19 06:28:40 -08:00
2016-11-20 17:58:29 -08:00
2017-01-09 00:28:37 -08:00
2016-11-29 15:28:32 -08:00
2016-09-01 19:43:47 -07:00
2016-12-07 15:28:29 -08:00
2016-11-23 11:28:29 -08:00
2016-12-15 22:43:30 -08:00
2017-01-11 03:58:37 -08:00
2017-01-02 05:28:30 -08:00
2016-12-27 10:43:33 -08:00
2016-11-20 17:58:29 -08:00
2016-12-07 15:28:29 -08:00
2016-12-08 07:44:37 -08:00
2016-08-02 07:58:28 -07:00
2016-11-20 17:58:29 -08:00