File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ function NavBar({
1616 leftStyle,
1717 leftIconColor,
1818 leftHitSlop,
19- name,
19+ leftIconName,
20+ leftIconFamily,
2021 onLeftPress,
2122 right,
2223 rightStyle,
@@ -48,10 +49,10 @@ function NavBar({
4849 < View style = { [ styles . left , leftStyle ] } >
4950 < TouchableOpacity onPress = { ( ) => onLeftPress && onLeftPress ( ) } hitSlop = { leftHitSlop } >
5051 < Icon
51- family = "evilicons"
52+ family = { leftIconFamily || "evilicons" }
5253 color = { leftIconColor || theme . COLORS . ICON }
5354 size = { theme . SIZES . BASE * 1.0625 }
54- name = { name || ( back ? 'chevron-left' : 'navicon' ) }
55+ name = { leftIconName || ( back ? 'chevron-left' : 'navicon' ) }
5556 />
5657 </ TouchableOpacity >
5758 </ View >
@@ -118,7 +119,8 @@ NavBar.propTypes = {
118119 style : PropTypes . any ,
119120 styles : PropTypes . any ,
120121 theme : PropTypes . any ,
121- name : PropTypes . string ,
122+ leftIconName : PropTypes . string ,
123+ leftIconFamily : PropTypes . string ,
122124 hideLeft : PropTypes . bool ,
123125 hideRight : PropTypes . bool ,
124126} ;
You can’t perform that action at this time.
0 commit comments