Skip to content

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

fix crash

ammarahm-ed1efca284f611
diff --git a/apps/mobile/App.js b/apps/mobile/App.js
index 2f3482b5e..db0e0a467 100644
--- a/apps/mobile/App.js
+++ b/apps/mobile/App.js
@@ -91,11 +91,8 @@ const App = () => {
backgroundColor: colors.bg,
}}>
<Loading />
-
<I.Initialize />
-
<Toast />
-
<DialogManager colors={colors} />
</Animatable.View>
</>
diff --git a/apps/mobile/index.mobile.js b/apps/mobile/index.mobile.js
index fa450f506..efbb87547 100644
--- a/apps/mobile/index.mobile.js
+++ b/apps/mobile/index.mobile.js
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, {useEffect} from 'react';
import Animated from 'react-native-reanimated';
import {Menu} from './src/components/Menu';
import SideMenu from './src/components/SideMenu';
@@ -54,7 +54,7 @@ export const Initialize = () => {
}}
/>
</SideMenu>
- )}
+
<Animated.View
ref={ref => (editorRef = ref)}
onResponderTerminationRequest={true}
@@ -69,7 +69,6 @@ export const Initialize = () => {
position: 'absolute',
backgroundColor: colors.bg,
elevation: 10,
-
transform: [
{
translateX: EditorPosition,
diff --git a/apps/mobile/index.tablet.js b/apps/mobile/index.tablet.js
index 3fc6e65f9..d4988c1ba 100644
--- a/apps/mobile/index.tablet.js
+++ b/apps/mobile/index.tablet.js
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, {useEffect} from 'react';
import {View, Platform, StatusBar} from 'react-native';
import * as Animatable from 'react-native-animatable';
import {Menu} from './src/components/Menu';
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index abc693808..f6cc52d49 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -219,7 +219,7 @@ export const Settings = ({navigation}) => {
}}>
<Icon size={SIZE.lg} color="white" name="account-outline" />
</View>
- <Icon name="account-outline" color="white" size={SIZE.lg} />
+
<View
style={{
marginLeft: 10,