Ver código fonte

Updated SettingsPage

Savio Fernando 1 ano atrás
pai
commit
83a1425c28
1 arquivos alterados com 1 adições e 6 exclusões
  1. 1 6
      src/screens/Settings/SettingsPage.js

+ 1 - 6
src/screens/Settings/SettingsPage.js

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