Skip to content

Commit 151460c

Browse files
committed
add settings button to left button
1 parent b8e5d9f commit 151460c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

source/views/components/nav-buttons/open-settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

source/views/home/home.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {allViews} from '../views'
1616
import {HomeScreenButton, CELL_MARGIN} from './button'
1717
import {trackedOpenUrl} from '../components/open-url'
1818
import {EditHomeButton} from '../components/nav-buttons'
19+
import {OpenSettingsButton} from '../components/nav-buttons'
1920

2021
function 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

0 commit comments

Comments
 (0)