From ae38ffadb566052bc55feb8267afadeb18ca3a2a Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Sat, 1 Mar 2025 15:10:08 +0500 Subject: [PATCH] mobile: fix beta release getting update dialog prompt --- apps/mobile/app/utils/constants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/mobile/app/utils/constants.ts b/apps/mobile/app/utils/constants.ts index c7b27e0bf..2b948b7da 100644 --- a/apps/mobile/app/utils/constants.ts +++ b/apps/mobile/app/utils/constants.ts @@ -18,12 +18,13 @@ along with this program. If not, see . */ import { Platform } from "react-native"; +import { getVersion } from "react-native-device-info"; export const IOS_APPGROUPID = "group.org.streetwriters.notesnook"; export const FILE_SIZE_LIMIT = 500 * 1024 * 1024; export const IMAGE_SIZE_LIMIT = 50 * 1024 * 1024; -export const BETA = false; +export const BETA = getVersion().includes("beta"); export const STORE_LINK = Platform.OS === "ios"