Skip to content

Commit

Permalink
Fix Platform.constants is undefined error in WEB (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
lekzd authored Nov 7, 2021
1 parent 9995e8b commit 7df3faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export const isIphoneX =
width === 926);
export const isAndroid = Platform.OS === 'android';
export const isWeb = Platform.OS === 'web';
export const isBelowRN65 = Platform.constants.reactNativeVersion.minor < 65;
export const isBelowRN65 = Platform.constants?.reactNativeVersion.minor < 65;

0 comments on commit 7df3faa

Please sign in to comment.