Skip to content

Commit

Permalink
fix android version type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
fidoriel committed Aug 1, 2024
1 parent e7b7e73 commit 4fe33ec
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 4fe33ec

Please sign in to comment.