diff --git a/Examples/UIExplorer/UIExplorerListBase.js b/Examples/UIExplorer/UIExplorerListBase.js index 71ce0031f..b4af76e60 100644 --- a/Examples/UIExplorer/UIExplorerListBase.js +++ b/Examples/UIExplorer/UIExplorerListBase.js @@ -87,11 +87,9 @@ class UIExplorerListBase extends React.Component { _renderSectionHeader(data: any, section: string) { return ( - - - {section.toUpperCase()} - - + + {section.toUpperCase()} + ); } @@ -148,14 +146,12 @@ var styles = StyleSheet.create({ }, sectionHeader: { padding: 5, + fontWeight: '500', + fontSize: 11, }, group: { backgroundColor: 'white', }, - sectionHeaderTitle: { - fontWeight: '500', - fontSize: 11, - }, row: { backgroundColor: 'white', justifyContent: 'center', diff --git a/Libraries/Text/TextStylePropTypes.js b/Libraries/Text/TextStylePropTypes.js index edcf42839..3db900fd7 100644 --- a/Libraries/Text/TextStylePropTypes.js +++ b/Libraries/Text/TextStylePropTypes.js @@ -70,19 +70,4 @@ var TextStylePropTypes = Object.assign(Object.create(ViewStylePropTypes), { ), }); -// Text doesn't support padding correctly (#4841912) -var unsupportedProps = Object.keys({ - padding: null, - paddingTop: null, - paddingLeft: null, - paddingRight: null, - paddingBottom: null, - paddingVertical: null, - paddingHorizontal: null, -}); - -for (var ii = 0; ii < unsupportedProps.length; ii++) { - delete TextStylePropTypes[unsupportedProps[ii]]; -} - module.exports = TextStylePropTypes;