Emil Sjolander
47266b9ae8
Add percentage support to react native
Summary:
@public
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 04:09:34 -08:00
..
2017-01-06 06:54:41 -08:00
2017-01-10 07:09:33 -08:00
2017-01-02 05:24:35 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-29 04:55:56 -08:00
2017-01-10 07:09:33 -08:00
2017-01-10 07:09:33 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2016-12-07 05:22:52 -08:00
2017-01-02 05:24:35 -08:00
2017-01-11 04:09:34 -08:00
2016-12-07 05:22:52 -08:00