File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,11 +29,13 @@ const ModernHeader = props => {
2929 leftIconComponent,
3030 rightIconComponent,
3131 leftIconOnPress,
32- rightIconOnPress
32+ rightIconOnPress,
33+ rightDisable,
34+ leftDisable
3335 } = props ;
3436 return (
3537 < View style = { styles . container } >
36- < TouchableOpacity
38+ { ! leftDisable && < TouchableOpacity
3739 style = { leftCompStyle ( left ) }
3840 hitSlop = { hitslopObj }
3941 onPress = { leftIconOnPress }
@@ -46,9 +48,9 @@ const ModernHeader = props => {
4648 color = { leftIconColor }
4749 />
4850 ) }
49- </ TouchableOpacity >
51+ </ TouchableOpacity > }
5052 < Text style = { textStyle } > { text } </ Text >
51- < TouchableOpacity
53+ { ! rightDisable && < TouchableOpacity
5254 style = { rightCompStyle ( right ) }
5355 onPress = { rightIconOnPress }
5456 >
@@ -60,7 +62,7 @@ const ModernHeader = props => {
6062 color = { rightIconColor }
6163 />
6264 ) }
63- </ TouchableOpacity >
65+ </ TouchableOpacity > }
6466 </ View >
6567 ) ;
6668} ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @freakycoder/react-native-header-view" ,
3- "version" : " 0.3.1 " ,
3+ "version" : " 0.3.11 " ,
44 "description" : " Fully customizable Header View for React Native." ,
55 "keywords" : [
66 " react-native" ,
You can’t perform that action at this time.
0 commit comments