@@ -17,7 +17,6 @@ const SafeAreaView = require('../../Components/SafeAreaView/SafeAreaView');
17
17
const StyleSheet = require ( '../../StyleSheet/StyleSheet' ) ;
18
18
const Text = require ( '../../Text/Text' ) ;
19
19
const View = require ( '../../Components/View/View' ) ;
20
- const YellowBoxImageSource = require ( './YellowBoxImageSource' ) ;
21
20
const YellowBoxPressable = require ( './YellowBoxPressable' ) ;
22
21
const YellowBoxStyle = require ( './YellowBoxStyle' ) ;
23
22
@@ -43,15 +42,15 @@ const YellowBoxInspectorHeader = (props: Props): React.Node => {
43
42
< View style = { styles . header } >
44
43
< YellowBoxInspectorHeaderButton
45
44
disabled = { props . warnings [ prevIndex ] == null }
46
- image = { YellowBoxImageSource . chevronLeft }
45
+ image = { require ( '../../LogBox/UI/LogBoxImages/chevron-left.png' ) }
47
46
onPress = { ( ) => props . onSelectIndex ( prevIndex ) }
48
47
/>
49
48
< View style = { styles . headerTitle } >
50
49
< Text style = { styles . headerTitleText } > { titleText } </ Text >
51
50
</ View >
52
51
< YellowBoxInspectorHeaderButton
53
52
disabled = { props . warnings [ nextIndex ] == null }
54
- image = { YellowBoxImageSource . chevronRight }
53
+ image = { require ( '../../LogBox/UI/LogBoxImages/chevron-right.png' ) }
55
54
onPress = { ( ) => props . onSelectIndex ( nextIndex ) }
56
55
/>
57
56
</ View >
@@ -74,10 +73,7 @@ const YellowBoxInspectorHeaderButton = (
74
73
onPress = { props . disabled ? null : props . onPress }
75
74
style = { styles . headerButton } >
76
75
{ props . disabled ? null : (
77
- < Image
78
- source = { { height : 16 , uri : props . image , width : 16 } }
79
- style = { styles . headerButtonImage }
80
- />
76
+ < Image source = { props . image } style = { styles . headerButtonImage } />
81
77
) }
82
78
</ YellowBoxPressable >
83
79
) ;
@@ -99,6 +95,8 @@ const styles = StyleSheet.create({
99
95
justifyContent : 'center' ,
100
96
} ,
101
97
headerButtonImage : {
98
+ height : 14 ,
99
+ width : 8 ,
102
100
tintColor : YellowBoxStyle . getTextColor ( 1 ) ,
103
101
} ,
104
102
headerTitle : {
0 commit comments