diff options
Diffstat (limited to 'modules/bottom-sheet/src')
-rw-r--r-- | modules/bottom-sheet/src/BottomSheetNativeComponent.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx b/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx index 869b89e3d..d367ac300 100644 --- a/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx +++ b/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx @@ -30,7 +30,10 @@ const NativeView: React.ComponentType< const NativeModule = requireNativeModule('BottomSheet') -const isIOS15 = Platform.OS === 'ios' && Number(Platform.Version) < 16 +const isIOS15 = + Platform.OS === 'ios' && + // semvar - can be 3 segments, so can't use Number(Platform.Version) + Number(Platform.Version.split('.').at(0)) < 16 export class BottomSheetNativeComponent extends React.Component< BottomSheetViewProps, |