diff --git a/src/components/bottomSheet/BottomSheet.tsx b/src/components/bottomSheet/BottomSheet.tsx index fc520337..b41715c2 100644 --- a/src/components/bottomSheet/BottomSheet.tsx +++ b/src/components/bottomSheet/BottomSheet.tsx @@ -215,7 +215,12 @@ const BottomSheetComponent = forwardRef( const animatedCurrentIndex = useReactiveSharedValue( animateOnMount ? -1 : _providedIndex ); - const animatedPosition = useSharedValue(Dimensions.get('window').height); + const animatedPosition = useSharedValue( + Platform.select({ + web: Dimensions.get('window').height, + default: Dimensions.get('screen').height, + }) + ); // conditional const didAnimateOnMount = useSharedValue(