diff --git a/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js b/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js index 4ed124eaba2..b84afd8ca44 100644 --- a/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js +++ b/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js @@ -12,6 +12,7 @@ const Platform = require('Platform'); const React = require('React'); +const SafeAreaView = require('SafeAreaView'); const StyleSheet = require('StyleSheet'); const Text = require('Text'); const UTFSequence = require('UTFSequence'); @@ -37,21 +38,23 @@ const YellowBoxInspectorHeader = (props: Props): React.Node => { : `Occurrence ${props.selectedIndex + 1} of ${props.warnings.length}`; return ( - - props.onSelectIndex(prevIndex)} - /> - - {titleText} + + + props.onSelectIndex(prevIndex)} + /> + + {titleText} + + props.onSelectIndex(nextIndex)} + /> - props.onSelectIndex(nextIndex)} - /> - + ); }; @@ -63,6 +66,10 @@ const YellowBoxInspectorHeaderButton = ( |}>, ): React.Node => ( {props.disabled ? null : ( @@ -72,6 +79,9 @@ const YellowBoxInspectorHeaderButton = ( ); const styles = StyleSheet.create({ + root: { + backgroundColor: YellowBoxStyle.getBackgroundColor(0.95), + }, header: { flexDirection: 'row', height: Platform.select({ @@ -92,7 +102,6 @@ const styles = StyleSheet.create({ }, headerTitle: { alignItems: 'center', - backgroundColor: YellowBoxStyle.getBackgroundColor(0.95), flex: 1, justifyContent: 'center', },