A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix tablet mode not loading in portrait
ammarahm-eda97c3d65e8bf
diff --git a/apps/mobile/App.js b/apps/mobile/App.jsindex 641e1c9a6..f4009dc4d 100644--- a/apps/mobile/App.js+++ b/apps/mobile/App.js@@ -10,12 +10,11 @@ import {eSubscribeEvent, eUnSubscribeEvent} from './src/services/eventManager';import {eDispatchAction} from './src/services/events';import {db, DDS} from './src/utils/utils';-const I = DDS.isTab ? require('./index.tablet') : require('./index.mobile');-const App = () => {const [state, dispatch] = useTracked();const [init, setInit] = useState(false);-+ const I = DDS.isTab ? require('./index.tablet') : require('./index.mobile');+ console.log(DDS.isTab, 'TABLET');const _onOrientationChange = o => {// Currently orientation is locked on tablet./* DDS.checkOrientation();diff --git a/apps/mobile/src/utils/deviceDetection.js b/apps/mobile/src/utils/deviceDetection.jsindex 2e63ceb81..906b346a0 100644--- a/apps/mobile/src/utils/deviceDetection.js+++ b/apps/mobile/src/utils/deviceDetection.js@@ -13,7 +13,7 @@ export class DeviceDetectionService {this.isPhoneOrTablet();this.isIosOrAndroid();this.detectIphoneX();- this.checkOrientation();+ //this.checkOrientation();}checkOrientation() {