File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed
example/navbar-buttons-demo Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 77 "react-native" : " https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz" ,
88 "react-native-platform-touchable" : " ^1.1.1" ,
99 "react-navigation" : " ^1.0.0-beta.27" ,
10- "react-navigation-header-buttons" : " ^0.0.4 "
10+ "react-navigation-header-buttons" : " file:../.. "
1111 }
1212}
Original file line number Diff line number Diff line change @@ -11,8 +11,12 @@ export class UsageWithIcons extends React.Component {
1111 title : 'Usage With Icons' ,
1212 headerRight : (
1313 < HeaderButtons IconComponent = { Ionicons } iconSize = { 23 } color = "blue" >
14- < HeaderButtons . Item title = "add" iconName = "ios-search" onPress = { ( ) => console . warn ( 'add' ) } />
15- < HeaderButtons . Item title = "select" onPress = { ( ) => console . warn ( 'edit' ) } />
14+ < HeaderButtons . Item
15+ title = "search"
16+ iconName = "ios-search"
17+ onPress = { ( ) => console . warn ( 'search' ) }
18+ />
19+ < HeaderButtons . Item title = "select" onPress = { ( ) => console . warn ( 'select' ) } />
1620 </ HeaderButtons >
1721 ) ,
1822 } ;
@@ -21,8 +25,8 @@ export class UsageWithIcons extends React.Component {
2125 const text = `
2226 headerRight: (
2327 <HeaderButtons IconComponent={Ionicons} iconSize={23} color="blue">
24- <HeaderButtons.Item title="add " iconName="ios-search" onPress={() => console.warn('add ')} />
25- <HeaderButtons.Item title="select" onPress={() => console.warn('edit ')} />
28+ <HeaderButtons.Item title="search " iconName="ios-search" onPress={() => console.warn('search ')} />
29+ <HeaderButtons.Item title="select" onPress={() => console.warn('select ')} />
2630 </HeaderButtons>
2731 ),
2832 ` ;
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ export class UsageWithOverflow extends React.Component {
1010 title : 'Usage With Overflow' ,
1111 headerRight : (
1212 < HeaderButtons IconComponent = { MaterialIcons } iconSize = { 23 } color = "blue" >
13- < HeaderButtons . Item title = "person" iconName = "person" onPress = { ( ) => console . warn ( 'add' ) } />
13+ < HeaderButtons . Item
14+ title = "person"
15+ iconName = "person"
16+ onPress = { ( ) => console . warn ( 'person' ) }
17+ />
1418 < HeaderButtons . Item title = "edit" show = "never" onPress = { ( ) => console . warn ( 'edit' ) } />
1519 </ HeaderButtons >
1620 ) ,
@@ -20,7 +24,7 @@ export class UsageWithOverflow extends React.Component {
2024 const text = `
2125 headerRight: (
2226 <HeaderButtons IconComponent={MaterialIcons} iconSize={23} color="blue">
23- <HeaderButtons.Item title="person" iconName="person" onPress={() => console.warn('add ')} />
27+ <HeaderButtons.Item title="person" iconName="person" onPress={() => console.warn('person ')} />
2428 <HeaderButtons.Item title="edit" show="never" onPress={() => console.warn('edit')} />
2529 </HeaderButtons>
2630 ),
You can’t perform that action at this time.
0 commit comments