cc275557be
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 |
||
---|---|---|
.. | ||
Base | ||
CxxBridge | ||
CxxModule | ||
CxxUtils | ||
DevSupport | ||
Executors | ||
Modules | ||
Profiler | ||
React.xcodeproj | ||
ReactCxx.xcodeproj | ||
Views | ||
folly.xcconfig |