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