Skip to content

Commit

Permalink
Merge pull request #522 from fidoriel/fix-android-version-type-mismatch
Browse files Browse the repository at this point in the history
fix android version type mismatch
  • Loading branch information
thornbill authored Aug 21, 2024
2 parents 4e8d1d2 + 4fe33ec commit eae1d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/Device.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '>'));
}

0 comments on commit eae1d2e

Please sign in to comment.