···144144 }
145145146146 func updateLayout() {
147147- if self.prevLayoutDetentIdentifier == self.selectedDetentIdentifier,
147147+ // Allow updates either when identifiers match OR when prevLayoutDetentIdentifier is nil (first real content update)
148148+ if (self.prevLayoutDetentIdentifier == self.selectedDetentIdentifier || self.prevLayoutDetentIdentifier == nil),
148149 let contentHeight = self.innerView?.subviews.first?.frame.size.height {
149150 self.sheetVc?.updateDetents(contentHeight: self.clampHeight(contentHeight),
150151 preventExpansion: self.preventExpansion)
···11import * as React from 'react'
22import {
33 Dimensions,
44- LayoutChangeEvent,
55- NativeSyntheticEvent,
44+ type LayoutChangeEvent,
55+ type NativeSyntheticEvent,
66 Platform,
77- StyleProp,
77+ type StyleProp,
88 View,
99- ViewStyle,
99+ type ViewStyle,
1010} from 'react-native'
1111import {useSafeAreaInsets} from 'react-native-safe-area-context'
1212import {requireNativeModule, requireNativeViewManager} from 'expo-modules-core'
13131414import {isIOS} from '#/platform/detection'
1515-import {BottomSheetState, BottomSheetViewProps} from './BottomSheet.types'
1515+import {
1616+ type BottomSheetState,
1717+ type BottomSheetViewProps,
1818+} from './BottomSheet.types'
1619import {BottomSheetPortalProvider} from './BottomSheetPortal'
1720import {Context as PortalContext} from './BottomSheetPortal'
1821
···11-import {BottomSheetViewProps} from './BottomSheet.types'
11+import {type BottomSheetViewProps} from './BottomSheet.types'
2233export function BottomSheetNativeComponent(_: BottomSheetViewProps) {
44 throw new Error('BottomSheetNativeComponent is not available on web')