File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
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 @@ -16,6 +16,7 @@ import {allViews} from '../views'
1616import { HomeScreenButton , CELL_MARGIN } from './button'
1717import { trackedOpenUrl } from '../components/open-url'
1818import { EditHomeButton } from '../components/nav-buttons'
19+ import { OpenSettingsButton } from '../components/nav-buttons'
1920
2021function HomePage ( {
2122 navigation,
@@ -55,6 +56,7 @@ HomePage.navigationOptions = ({navigation}) => {
5556 title : 'All About Olaf' ,
5657 headerBackTitle : 'Home' ,
5758 headerRight : < EditHomeButton navigation = { navigation } /> ,
59+ headerLeft : < OpenSettingsButton navigation = { navigation } /> ,
5860 }
5961}
6062
You can’t perform that action at this time.
0 commit comments