|
@@ -48,12 +48,6 @@ const SettingsPage = props => {
|
|
id: 6,
|
|
id: 6,
|
|
title: 'Switch Theme',
|
|
title: 'Switch Theme',
|
|
icon: 'theme-light-dark',
|
|
icon: 'theme-light-dark',
|
|
- // navigation: () => {
|
|
|
|
- // if (currentTheme === 'dark')
|
|
|
|
- // theme.dispatch({ type: "LIGHTMODE" });
|
|
|
|
- // else
|
|
|
|
- // theme.dispatch({ type: "DARKMODE" });
|
|
|
|
- // },
|
|
|
|
navigation: () => {
|
|
navigation: () => {
|
|
if (currentTheme === 'dark')
|
|
if (currentTheme === 'dark')
|
|
theme.dispatch({ type: "LIGHTMODE" });
|
|
theme.dispatch({ type: "LIGHTMODE" });
|
|
@@ -83,6 +77,7 @@ const SettingsPage = props => {
|
|
title="Settings"
|
|
title="Settings"
|
|
backButtonShown={true}
|
|
backButtonShown={true}
|
|
onBackClick={() => navigation.goBack()}
|
|
onBackClick={() => navigation.goBack()}
|
|
|
|
+ headerStyle={{elevation: 2}}
|
|
/>
|
|
/>
|
|
<View>
|
|
<View>
|
|
<ScrollView>
|
|
<ScrollView>
|