File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export function OpenSettingsButton({
2222 borderless
2323 highlight = { false }
2424 style = { [ styles . button , buttonStyle ] }
25- onPress = { ( ) => navigation . push ( 'SettingsView' ) }
25+ onPress = { ( ) => navigation . navigate ( 'SettingsView' ) }
2626 >
2727 < Icon style = { styles . icon } name = "ios-settings" />
2828 </ Touchable >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import type {ViewType} from '../views'
1515import { allViews } from '../views'
1616import { HomeScreenButton , CELL_MARGIN } from './button'
1717import { trackedOpenUrl } from '../components/open-url'
18- import { EditHomeButton } from '../components/nav-buttons'
18+ import { EditHomeButton , OpenSettingsButton } from '../components/nav-buttons'
1919
2020function HomePage ( {
2121 navigation,
@@ -54,6 +54,7 @@ HomePage.navigationOptions = ({navigation}) => {
5454 return {
5555 title : 'All About Olaf' ,
5656 headerBackTitle : 'Home' ,
57+ headerLeft : < OpenSettingsButton navigation = { navigation } /> ,
5758 headerRight : < EditHomeButton navigation = { navigation } /> ,
5859 }
5960}
You can’t perform that action at this time.
0 commit comments