Skip to content

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

wrap Editor in ScreenContainer

ammarahm-ed9d001bddc679
diff --git a/apps/mobile/index.mobile.js b/apps/mobile/index.mobile.js
index 95387c197..616eeeff0 100644
--- a/apps/mobile/index.mobile.js
+++ b/apps/mobile/index.mobile.js
@@ -19,8 +19,12 @@ import {eSubscribeEvent, eUnSubscribeEvent} from './src/services/eventManager';
import {eOpenSideMenu, eCloseSideMenu} from './src/services/events';
import { Toast } from './src/components/Toast';
import { DialogManager } from './src/components/DialogManager';
+import { Screen, ScreenContainer } from 'react-native-screens';
const editorRef = createRef();
+
+const AnimatedScreenContainer = Animated.createAnimatedComponent(ScreenContainer);
+
export const Initialize = () => {
const [state, dispatch] = useTracked();
const {colors} = state;
@@ -91,7 +95,7 @@ export const Initialize = () => {
</View>
</DrawerLayout>
- <Animated.View
+ <AnimatedScreenContainer
ref={editorRef}
onResponderTerminationRequest={true}
onStartShouldSetResponderCapture={false}
@@ -121,8 +125,18 @@ export const Initialize = () => {
},
],
}}>
+ <Screen
+ active={1}
+ style={{
+ width:'100%',
+ height:'100%'
+ }}
+ >
+
+
<Editor noMenu={false} />
- </Animated.View>
+ </Screen>
+ </AnimatedScreenContainer>
</Animatable.View>
<Toast />
<DialogManager colors={colors} />