Emil Sjolander
cc275557be
Add margin auto support to react native
Summary:
This diff adds margin:auto (https://drafts.csswg.org/css-flexbox-1/#auto-margins) support to React Native. This enables layout not previously supported without inserting empty 'spacer' views. 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, backgroundColor: 'red'}}/>
<View style={{width: 100, height: 100, marginLeft: 'auto', backgroundColor: 'blue'}}/>
</View>
);
}
}
```
Reviewed By: astreet
Differential Revision: D4611753
fbshipit-source-id: e78335565c193f7fb263129a638b444715ba5ab0
2017-03-01 09:16:05 -08:00
..
2016-11-23 07:58:39 -08:00
2016-06-30 19:43:28 -07:00
2017-02-27 14:04:58 -08:00
2017-01-10 11:28:44 -08:00
2017-02-17 06:00:54 -08:00
2017-02-17 06:00:54 -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-02-06 21:00:16 -08:00
2017-03-01 09:16:05 -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
2015-09-29 09:22:10 -07:00
2015-08-25 01:08:49 -08:00
2016-11-23 07:58:39 -08:00
2016-08-31 17:43:49 -07:00
2015-08-14 01:57:18 -08:00
2016-11-23 07:58:39 -08:00
2017-01-11 22:28:43 -08:00
2017-02-20 04:30:19 -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
2017-01-25 12:28:50 -08:00
2017-01-13 03:43:35 -08:00
2016-11-23 07:58:39 -08:00
2017-01-16 15:13:36 -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
2016-10-27 04:29:01 -07:00
2016-10-03 18:13:36 -07:00
2016-10-11 12:28:42 -07:00
2015-12-10 10:12:29 -08:00
2016-11-23 07:58:39 -08:00
2015-12-10 10:12:29 -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
2017-02-22 15:01:11 -08:00
2016-12-07 20:13:22 -08:00
2016-12-07 20:13:22 -08:00
2017-02-19 23:19:47 -08:00
2017-02-19 23:19:47 -08:00
2017-02-27 14:04:58 -08:00
2017-02-27 14:04:58 -08:00
2017-02-27 14:04:58 -08:00
2017-02-27 14:04:58 -08:00
2016-11-23 07:58:39 -08:00
2017-01-12 12:13:28 -08:00
2017-01-09 00:13:33 -08:00
2017-01-13 17:43:35 -08:00
2016-12-19 06:28:40 -08:00
2016-12-19 06:28:40 -08:00
2015-07-23 04:00:31 -08:00
2016-11-23 07:58:39 -08:00
2017-01-16 15:13:36 -08:00
2017-01-16 15:13:36 -08:00
2016-12-08 07:44:38 -08:00