From 6526f427f50b6ff24933cc93f6d77bf8122e9620 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 9 Jan 2025 17:40:14 +0000 Subject: [PATCH] fix race condition --- modules/bottom-sheet/src/BottomSheetNativeComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx b/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx index acd46ce015..9caeadad62 100644 --- a/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx +++ b/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx @@ -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()) }}> {children}