react-native/React
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
..
Base Add margin auto support to react native 2017-03-01 09:16:05 -08:00
CxxBridge TODO is done 2017-02-28 14:15:57 -08:00
CxxModule Move some utilities to RCTCxxUtils 2017-02-16 14:02:03 -08:00
CxxUtils Move RCTFollyConvert to the correct namespace 2017-02-16 06:59:27 -08:00
DevSupport Add a RCTPackagerClientMethod handler for pokeSamplingProfiler in DevMenu 2017-02-24 08:30:50 -08:00
Executors Fixes current CI failures and allows tree shaking of native dev support code. 2017-02-27 14:04:58 -08:00
Modules Fixes current CI failures and allows tree shaking of native dev support code. 2017-02-27 14:04:58 -08:00
Profiler Fixes current CI failures and allows tree shaking of native dev support code. 2017-02-27 14:04:58 -08:00
React.xcodeproj Add missing websocket headers to React-tvOS target 2017-02-24 09:45:38 -08:00
ReactCxx.xcodeproj Create NSDataBigString 2017-02-20 05:00:58 -08:00
Views Add margin auto support to react native 2017-03-01 09:16:05 -08:00
folly.xcconfig Fork React.xcodeproj to build the C++ bridge 2017-02-01 14:14:32 -08:00