From b1550f9c0296704df5f3fcf73b869f0f7cc55f73 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 22 Apr 2025 21:49:20 +0300 Subject: fix first sheet height change not registering (#8267) --- modules/bottom-sheet/src/BottomSheetNativeComponent.tsx | 13 ++++++++----- modules/bottom-sheet/src/BottomSheetNativeComponent.web.tsx | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'modules/bottom-sheet/src') diff --git a/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx b/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx index 1fe592aa2..869b89e3d 100644 --- a/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx +++ b/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx @@ -1,18 +1,21 @@ import * as React from 'react' import { Dimensions, - LayoutChangeEvent, - NativeSyntheticEvent, + type LayoutChangeEvent, + type NativeSyntheticEvent, Platform, - StyleProp, + type StyleProp, View, - ViewStyle, + type ViewStyle, } from 'react-native' import {useSafeAreaInsets} from 'react-native-safe-area-context' import {requireNativeModule, requireNativeViewManager} from 'expo-modules-core' import {isIOS} from '#/platform/detection' -import {BottomSheetState, BottomSheetViewProps} from './BottomSheet.types' +import { + type BottomSheetState, + type BottomSheetViewProps, +} from './BottomSheet.types' import {BottomSheetPortalProvider} from './BottomSheetPortal' import {Context as PortalContext} from './BottomSheetPortal' diff --git a/modules/bottom-sheet/src/BottomSheetNativeComponent.web.tsx b/modules/bottom-sheet/src/BottomSheetNativeComponent.web.tsx index f1a77cf33..8149561a3 100644 --- a/modules/bottom-sheet/src/BottomSheetNativeComponent.web.tsx +++ b/modules/bottom-sheet/src/BottomSheetNativeComponent.web.tsx @@ -1,4 +1,4 @@ -import {BottomSheetViewProps} from './BottomSheet.types' +import {type BottomSheetViewProps} from './BottomSheet.types' export function BottomSheetNativeComponent(_: BottomSheetViewProps) { throw new Error('BottomSheetNativeComponent is not available on web') -- cgit 1.4.1