Skip to content

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

provide single container for all screens

ammarahm-ed4d745af05111
diff --git a/apps/mobile/src/services/Navigator.js b/apps/mobile/src/services/Navigator.js
index e7f36f8c3..b8ea3c1d0 100644
--- a/apps/mobile/src/services/Navigator.js
+++ b/apps/mobile/src/services/Navigator.js
@@ -12,39 +12,44 @@ import Signup from '../views/Signup';
import Tags from '../views/Tags';
import Trash from '../views/Trash';
import {rootNavigatorRef} from '../utils/refs';
+import Container from '../components/Container';
const Stack = createStackNavigator();
export const NavigationStack = () => {
+
return (
- <NavigationContainer ref={rootNavigatorRef}>
- <Stack.Navigator
- initialRouteName="Home"
- screenOptions={{
- headerShown: false,
- animationEnabled: false,
- gestureEnabled: false,
- cardOverlayEnabled: false,
- cardShadowEnabled: false,
- }}>
- <Stack.Screen name="Home" component={Home} />
- <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} />
- <Stack.Screen name="Tags" component={Tags} />
- <Stack.Screen name="Notebook" component={Notebook} />
- <Stack.Screen name="Login" component={Login} />
- <Stack.Screen name="Signup" component={Signup} />
- <Stack.Screen name="Settings" component={Settings} />
- </Stack.Navigator>
- </NavigationContainer>
+ <Container root={true} >
+ <NavigationContainer ref={rootNavigatorRef}>
+ <Stack.Navigator
+ initialRouteName="Home"
+ screenOptions={{
+ headerShown: false,
+ animationEnabled: false,
+ gestureEnabled: false,
+ cardOverlayEnabled: false,
+ cardShadowEnabled: false,
+ }}>
+ <Stack.Screen name="Home" component={Home} />
+ <Stack.Screen
+ initialParams={{
+ title: 'Notebooks',
+ canGoBack: false,
+ root:true
+ }}
+ name="Folders"
+ component={Folders}
+ />
+ <Stack.Screen name="Favorites" component={Favorites} />
+ <Stack.Screen name="Trash" component={Trash} />
+ <Stack.Screen name="Notes" component={Notes} />
+ <Stack.Screen name="Tags" component={Tags} />
+ <Stack.Screen name="Notebook" component={Notebook} />
+ <Stack.Screen name="Login" component={Login} />
+ <Stack.Screen name="Signup" component={Signup} />
+ <Stack.Screen name="Settings" component={Settings} />
+ </Stack.Navigator>
+ </NavigationContainer>
+ </Container>
);
};