Merge pull request #522 from fidoriel/fix-android-version-type-mismatch

fix android version type mismatch
This commit is contained in:
Bill Thornton 2024-08-21 17:20:34 -04:00 committed by GitHub
commit eae1d2e922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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', '>'));
}