Skip to content

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

fix blocking UI in navigator

ammarahm-ed641569182dc0
diff --git a/apps/mobile/src/services/Navigator.js b/apps/mobile/src/services/Navigator.js
index 99781e310..7ad1d44ff 100644
--- a/apps/mobile/src/services/Navigator.js
+++ b/apps/mobile/src/services/Navigator.js
@@ -21,14 +21,21 @@ export const NavigationStack = () => {
<Stack.Navigator
initialRouteName="Home"
screenOptions={{
- headerShown:false,
+ headerShown: false,
animationEnabled: false,
gestureEnabled: false,
cardOverlayEnabled: false,
cardShadowEnabled: false,
}}>
<Stack.Screen name="Home" component={Home} />
- <Stack.Screen name="Folders" component={Folders} />
+ <Stack.Screen
+ initialParams={{
+ title: 'Notebooks',
+ canGoBack: false,
+ }}
+ name="Folders"
+ component={Folders}
+ />
<Stack.Screen name="Favorites" component={Favorites} />
<Stack.Screen name="Trash" component={Trash} />
<Stack.Screen name="Notes" component={Notes} />
@@ -41,4 +48,3 @@ export const NavigationStack = () => {
</NavigationContainer>
);
};
-
diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.js
index 3f9701784..a0600ebe8 100644
--- a/apps/mobile/src/views/Folders/index.js
+++ b/apps/mobile/src/views/Folders/index.js
@@ -35,7 +35,6 @@ export const Folders = ({route, navigation}) => {
};
useEffect(() => {
-
if (isFocused) {
dispatch({type: ACTIONS.PINNED});
dispatch({type: ACTIONS.NOTEBOOKS});