Skip to content

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

update width/heigh when required

ammarahm-edc3a56d2d33a5
diff --git a/apps/mobile/src/utils/index.js b/apps/mobile/src/utils/index.js
index be1bd0152..aa8cc0900 100755
--- a/apps/mobile/src/utils/index.js
+++ b/apps/mobile/src/utils/index.js
@@ -94,8 +94,13 @@ export async function showContext(event, title) {
});
}
-export const dWidth = Dimensions.get('window').width;
-export const dHeight = Dimensions.get('window').height;
+export let dWidth = Dimensions.get('window').width;
+export let dHeight = Dimensions.get('window').height;
+
+export function setWidthHeight(size) {
+ dWidth = size.width;
+ dHeight = size.height
+}
export const itemSkus = Platform.select({
ios: ['com.streetwriters.notesnook.sub.mo'],