fix android version type mismatch

This commit is contained in:
fidoriel 2024-08-01 23:53:24 +02:00
parent e7b7e736a8
commit 4fe33ec822

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