Skip to content

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

minor cleanup

ammarahm-ed36da5b62e0d1
diff --git a/apps/mobile/App.js b/apps/mobile/App.js
index b62f80bcc..2837bfd7c 100644
--- a/apps/mobile/App.js
+++ b/apps/mobile/App.js
@@ -2,15 +2,7 @@ import * as NetInfo from '@react-native-community/netinfo';
import * as Sentry from '@sentry/react-native';
import {EV} from 'notes-core/common';
import React, {useEffect, useState} from 'react';
-import {
- Appearance,
- AppState,
- Dimensions,
- Platform,
- StatusBar,
- View,
-} from 'react-native';
-import Orientation from 'react-native-orientation';
+import {Appearance, AppState, Platform, StatusBar} from 'react-native';
import {enabled} from 'react-native-privacy-snapshot';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import SplashScreen from 'react-native-splash-screen';
@@ -28,7 +20,6 @@ import {
import IntentService from './src/services/IntentService';
import {setLoginMessage} from './src/services/Message';
import SettingsService from './src/services/SettingsService';
-import {setWidthHeight} from './src/utils';
import {COLOR_SCHEME} from './src/utils/Colors';
import {db} from './src/utils/DB';
import {
@@ -46,10 +37,7 @@ Sentry.init({
dsn:
'https://[email protected]/5519681',
});
-
-let firstLoad = true;
let note = null;
-let {width, height} = Dimensions.get('window');
const onAppStateChanged = async (state) => {
if (state === 'active') {
diff --git a/apps/mobile/RootView.js b/apps/mobile/RootView.js
index a6a85e404..b531a1340 100644
--- a/apps/mobile/RootView.js
+++ b/apps/mobile/RootView.js
@@ -5,7 +5,7 @@ import ContextMenu from './src/components/ContextMenu';
import {DialogManager} from './src/components/DialogManager';
import {DummyText} from './src/components/DummyText';
import {Menu} from './src/components/Menu';
-import SideMenu from './src/components/SideMenu';
+import SideMenu from './src/components/SideMenu/SideMenu';
import {Toast} from './src/components/Toast';
import {NavigatorStack} from './src/navigation/NavigatorStack';
import {useTracked} from './src/provider';
diff --git a/apps/mobile/src/services/Navigation.js b/apps/mobile/src/services/Navigation.js
index f09294673..7fe44820d 100755
--- a/apps/mobile/src/services/Navigation.js
+++ b/apps/mobile/src/services/Navigation.js
@@ -1,13 +1,11 @@
-import { DrawerActions, StackActions } from '@react-navigation/native';
-import { rootNavigatorRef, sideMenuRef } from '../utils/Refs';
+import {StackActions} from '@react-navigation/native';
+import {rootNavigatorRef} from '../utils/Refs';
function navigate(name, params) {
-
rootNavigatorRef.current?.navigate(name, params);
-
}
function goBack() {
- rootNavigatorRef.current?.goBack();
+ rootNavigatorRef.current?.goBack();
}
function push(...args) {
@@ -15,17 +13,16 @@ function push(...args) {
}
function openDrawer() {
- sideMenuRef.current?.dispatch(DrawerActions.openDrawer());
+ //sideMenuRef.current?.dispatch(DrawerActions.openDrawer());
}
function closeDrawer() {
- sideMenuRef.current?.dispatch(DrawerActions.closeDrawer());
+ // sideMenuRef.current?.dispatch(DrawerActions.closeDrawer());
}
-
export default {
navigate,
goBack,
push,
openDrawer,
- closeDrawer
-};
\ No newline at end of file
+ closeDrawer,
+};