react-native/Libraries/StyleSheet
Emil Sjolander 4d69f4b2d1 Add display:none support to react native
Summary:
This diff adds display:none support to React Native. This enables hiding components which still calling their render method and keeping them within the state of your application. This enables preserving state in a component even though the component is not visible. Previously this was often implemented by rendering a component off screen as a work around. See below playground for usage.

```
class Playground extends React.Component {
  render() {
    return (
      <View style={{width: '100%', height: '100%', flexDirection: 'row', backgroundColor: 'white'}}>
        <View style={{width: 100, height: 100, display: 'none', backgroundColor: 'red'}}/>
        <View style={{width: 100, height: 100, backgroundColor: 'blue'}}/>
      </View>
    );
  }
}
```

Reviewed By: astreet

Differential Revision: D4611771

fbshipit-source-id: 0dbe0494d989df42994ab9ad5125d47f3233cc5a
2017-03-01 09:16:05 -08:00
..
__tests__ Update Jest to 19.0.2 2017-02-24 08:30:50 -08:00
ColorPropType.js Sync React Native with React 16.0.0-alpha.3 (take 2) 2017-02-27 17:30:30 -08:00
EdgeInsetsPropType.js RN: Stop Deep Linking `ReactPropTypes` 2016-10-14 18:59:10 -07:00
LayoutPropTypes.js Add display:none support to react native 2017-03-01 09:16:05 -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 Patch up for future React Sync 2017-02-08 14:50:43 -08:00
StyleSheetTypes.js Unrevert D3518381 2016-07-06 12:58:41 -07:00
StyleSheetValidation.js Patch up for future React Sync 2017-02-08 14:50:43 -08: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 BREAKING - Improve JS transform validation, add tests 2017-02-02 06:28:31 -08:00
setNormalizedColorAlpha.js Replace usages of hexToRgb with setNormalizedColorAlpha 2016-02-09 14:58:34 -08:00