react-native/Examples
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
..
2048 Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
Movies BREAKING: Android - ReactNativeHost getUseDeveloperSupport to public #2 2016-12-15 21:13:38 -08:00
TicTacToe Fix TicTacToe example layout 2017-01-09 00:28:37 -08:00
UIExplorer Add percentage support to react native 2017-01-11 03:58:37 -08:00
.eslintrc Add global flow types to eslint globals 2016-01-27 15:55:34 -08:00