react-native/Libraries/StyleSheet
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
..
__tests__ re-enable and fix tests 2016-09-03 01:13:37 -07:00
ColorPropType.js Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
EdgeInsetsPropType.js RN: Stop Deep Linking `ReactPropTypes` 2016-10-14 18:59:10 -07:00
LayoutPropTypes.js Add percentage support to react native 2017-01-11 03:58:37 -08:00
PointPropType.js RN: Stop Deep Linking `ReactPropTypes` 2016-10-14 18:59:10 -07:00
StyleSheet.js Add StyleSheet.setStyleAttributePreprocessor 2016-11-29 15:28:32 -08:00
StyleSheetPropType.js Flowify Libraries/StyleSheet and Libraries/Text 2015-03-24 16:22:59 -08:00
StyleSheetTypes.js Unrevert D3518381 2016-07-06 12:58:41 -07:00
StyleSheetValidation.js Upgrade to React v15.3.0-rc.2 2016-07-21 09:13:29 -07:00
TransformPropTypes.js RN: Stop Deep Linking `ReactPropTypes` 2016-10-14 18:59:10 -07:00
flattenStyle.js RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
normalizeColor.js Add support for number as colors 2016-02-08 04:04:38 -08:00
processColor.js Change internal format from 0xaarrggbb to 0xrrggbbaa 2016-02-07 10:14:29 -08:00
processTransform.js Accept transforms list instead of matrix for transform view parameter. 2016-08-05 10:58:42 -07:00
setNormalizedColorAlpha.js Replace usages of hexToRgb with setNormalizedColorAlpha 2016-02-09 14:58:34 -08:00