fix race condition

This commit is contained in:
Samuel Newman
2025-01-09 17:40:14 +00:00
parent e5c587450f
commit 6526f427f5
@@ -125,7 +125,7 @@ export class BottomSheetNativeComponent extends React.Component<
onLayout={e => {
const {height} = e.nativeEvent.layout
this.setState({viewHeight: height})
this.updateLayout()
setTimeout(() => this.updateLayout())
}}>
<BottomSheetPortalProvider>{children}</BottomSheetPortalProvider>
</View>