Skip to content

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

check orientation on App Load

ammarahm-ede606feb0b713
diff --git a/apps/mobile/App.js b/apps/mobile/App.js
index b7ff54557..10e70090d 100644
--- a/apps/mobile/App.js
+++ b/apps/mobile/App.js
@@ -155,8 +155,7 @@ const App = () => {
useEffect(() => {
SettingsService.init().then((r) => console.log);
- console.log(Orientation.getInitialOrientation(),"INIT ORIENT")
- DDS.checkSmallTab(Orientation.getInitialOrientation())
+ DDS.checkSmallTab(Orientation.getInitialOrientation());
dispatch({
type: Actions.DEVICE_MODE,
state: DDS.isLargeTablet()
@@ -303,12 +302,15 @@ const App = () => {
.catch(console.log);
});
- Sentry.init({
- dsn:
- 'https://[email protected]/5519681',
- release:"[email protected]",
- });
-
+ if (!__DEV__) {
+ try {
+ Sentry.init({
+ dsn:
+ 'https://[email protected]/5519681',
+ release: '[email protected]',
+ });
+ } catch (e) {}
+ }
};
const setCurrentUser = async () => {