We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e12d18b commit 13a5da8Copy full SHA for 13a5da8
src/commons/constants.ts
@@ -8,7 +8,7 @@ const isIOS = Platform.OS === 'ios';
8
const screenAspectRatio = screenWidth < screenHeight ? screenHeight / screenWidth : screenWidth / screenHeight;
9
const isTablet = (Platform as PlatformIOSStatic).isPad || (screenAspectRatio < 1.6 && Math.max(screenWidth, screenHeight) >= 900);
10
const isAndroidRTL = isAndroid && isRTL;
11
-const isRN73 = () => Platform.constants.reactNativeVersion?.minor >= 73;
+const isRN73 = () => !!Platform?.constants?.reactNativeVersion && Platform.constants.reactNativeVersion?.minor >= 73;
12
13
export default {
14
screenWidth,
0 commit comments