From 4fe33ec822520cd8d7aea9b74c73c9a98de9cc9e Mon Sep 17 00:00:00 2001 From: fidoriel <49869342+fidoriel@users.noreply.github.com> Date: Thu, 1 Aug 2024 23:53:24 +0200 Subject: [PATCH] fix android version type mismatch --- utils/Device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/Device.js b/utils/Device.js index 691671163..4998a9c01 100644 --- a/utils/Device.js +++ b/utils/Device.js @@ -55,5 +55,5 @@ export function isCompact({ height = 500 } = {}) { // Does the platform support system level themes: https://docs.expo.io/versions/latest/sdk/appearance/ export function isSystemThemeSupported() { return (Platform.OS === 'ios' && compareVersions.compare(Platform.Version, '12', '>')) || - (Platform.OS === 'android' && compareVersions.compare(Platform.Version, '9', '>')); + (Platform.OS === 'android' && compareVersions.compare(String(Platform.Version), '9', '>')); }