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 7
7
"react-native" : " https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz" ,
8
8
"react-native-platform-touchable" : " ^1.1.1" ,
9
9
"react-navigation" : " ^1.0.0-beta.27" ,
10
- "react-navigation-header-buttons" : " ^0.0.4 "
10
+ "react-navigation-header-buttons" : " file:../.. "
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -11,8 +11,12 @@ export class UsageWithIcons extends React.Component {
11
11
title : 'Usage With Icons' ,
12
12
headerRight : (
13
13
< 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' ) } />
16
20
</ HeaderButtons >
17
21
) ,
18
22
} ;
@@ -21,8 +25,8 @@ export class UsageWithIcons extends React.Component {
21
25
const text = `
22
26
headerRight: (
23
27
<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 ')} />
26
30
</HeaderButtons>
27
31
),
28
32
` ;
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ export class UsageWithOverflow extends React.Component {
10
10
title : 'Usage With Overflow' ,
11
11
headerRight : (
12
12
< 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
+ />
14
18
< HeaderButtons . Item title = "edit" show = "never" onPress = { ( ) => console . warn ( 'edit' ) } />
15
19
</ HeaderButtons >
16
20
) ,
@@ -20,7 +24,7 @@ export class UsageWithOverflow extends React.Component {
20
24
const text = `
21
25
headerRight: (
22
26
<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 ')} />
24
28
<HeaderButtons.Item title="edit" show="never" onPress={() => console.warn('edit')} />
25
29
</HeaderButtons>
26
30
),
You can’t perform that action at this time.
0 commit comments