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-11-23 07:58:39 -08:00
2016-06-30 19:43:28 -07:00
2016-11-23 07:58:39 -08:00
2017-01-10 11:28:44 -08:00
2016-12-07 20:13:22 -08:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2016-09-05 07:44:00 -07:00
2016-11-23 07:58:39 -08:00
2016-10-20 11:43:44 -07:00
2016-11-23 07:58:39 -08:00
2017-01-11 03:58:37 -08:00
2017-01-11 03:58:37 -08:00
2016-06-13 04:28:38 -07:00
2016-03-29 19:53:20 -07:00
2016-09-05 11:13:33 -07:00
2016-07-18 11:28:36 -07:00
2016-07-18 11:28:36 -07:00
2016-07-18 11:28:36 -07:00
2016-11-23 07:58:39 -08:00
2016-11-23 05:43:35 -08:00
2016-11-23 07:58:39 -08:00
2016-08-31 17:43:49 -07:00
2016-11-23 07:58:39 -08:00
2016-11-23 07:58:39 -08:00
2017-01-03 10:28:29 -08:00
2016-07-11 06:13:32 -07:00
2016-08-26 09:58:47 -07:00
2016-06-01 03:43:27 -07:00
2016-07-12 05:59:12 -07:00
2016-11-23 07:58:39 -08:00
2016-11-14 04:59:13 -08:00
2016-11-23 07:58:39 -08:00
2016-10-31 04:58:50 -07:00
2016-11-23 07:58:39 -08:00
2016-12-08 13:43:38 -08:00
2016-11-23 07:58:39 -08:00
2016-10-27 04:29:01 -07:00
2016-10-03 18:13:36 -07:00
2016-10-11 12:28:42 -07:00
2016-11-23 07:58:39 -08:00
2016-09-09 15:28:44 -07:00
2016-09-09 15:28:44 -07:00
2016-11-23 07:58:39 -08:00
2016-12-19 06:28:40 -08:00
2016-12-07 20:13:22 -08:00
2016-12-07 20:13:22 -08:00
2016-11-23 07:58:39 -08:00
2017-01-09 00:13:33 -08:00
2016-12-19 06:28:40 -08:00
2016-11-23 07:58:39 -08:00
2016-09-16 16:13:47 -07:00
2017-01-09 00:13:33 -08:00
2017-01-09 00:13:33 -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
2017-01-10 23:13:33 -08:00
2017-01-10 23:13:33 -08:00
2016-12-08 07:44:38 -08:00