3f49e743be
Summary: Adds support for percentage value in react native. syntax: property: 100 | property | '100%' supported properties: padding margin width height minWidth minHeight maxWidth maxHeight flexBasis ``` class Playground extends React.Component { render() { return ( <View style={{backgroundColor: 'white', padding: 10, paddingTop: 30, height: '100%'}}> <Text> If you want to quickly test out something, open the Playground.js file and start coding. </Text> <View style={{backgroundColor: 'red', height: 50, width: 50}}/> <View style={{backgroundColor: 'blue', height: '50%', width: '50%'}}/> </View> ); } } ``` Reviewed By: astreet Differential Revision: D4376549 fbshipit-source-id: c41d68a7555396f95d063a7527ee081773ac56dc |
||
---|---|---|
.. | ||
__tests__ | ||
ColorPropType.js | ||
EdgeInsetsPropType.js | ||
LayoutPropTypes.js | ||
PointPropType.js | ||
StyleSheet.js | ||
StyleSheetPropType.js | ||
StyleSheetTypes.js | ||
StyleSheetValidation.js | ||
TransformPropTypes.js | ||
flattenStyle.js | ||
normalizeColor.js | ||
processColor.js | ||
processTransform.js | ||
setNormalizedColorAlpha.js |