Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add settings to currentScreen state

ammarahm-ed6c262c8a8134
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index 1c8244d90..4ba31b34f 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -1,4 +1,4 @@
-import React, {useState} from 'react';
+import React, {useState, useEffect} from 'react';
import {
Platform,
ScrollView,
@@ -53,6 +53,13 @@ export const Settings = ({navigation}) => {
changeColorScheme();
}
+ useEffect(() => {
+ dispatch({
+ type: ACTIONS.CURRENT_SCREEN,
+ screen: 'settings',
+ });
+ },[])
+
return (
<Container
menu={true}
@@ -437,9 +444,6 @@ export const Settings = ({navigation}) => {
flexWrap: 'wrap',
}}
style={{
- backgroundColor: Platform.ios
- ? hexToRGBA(colors.accent + '19')
- : hexToRGBA(colors.shade),
borderRadius: 5,
padding: 5,
marginTop: 10,