Skip to content

Commit 3627f32

Browse files
authored
fix: bottom sheet layout issue interrupting with animated view (#2917)
1 parent 555fb68 commit 3627f32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package/src/components/UIComponents/BottomSheetModal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ export const BottomSheetModal = (props: PropsWithChildren<BottomSheetModalProps>
119119
});
120120

121121
return (
122-
<Modal animationType='fade' onRequestClose={handleDismiss} transparent visible={visible}>
123-
<GestureHandlerRootView style={{ flex: 1 }}>
122+
<GestureHandlerRootView style={{ flex: 1 }}>
123+
<Modal animationType='fade' onRequestClose={handleDismiss} transparent visible={visible}>
124124
<TouchableWithoutFeedback onPress={handleDismiss}>
125125
<View style={[styles.overlay, { backgroundColor: overlay }, overlayTheme]}>
126126
<GestureDetector gesture={gesture}>
@@ -143,8 +143,8 @@ export const BottomSheetModal = (props: PropsWithChildren<BottomSheetModalProps>
143143
</GestureDetector>
144144
</View>
145145
</TouchableWithoutFeedback>
146-
</GestureHandlerRootView>
147-
</Modal>
146+
</Modal>
147+
</GestureHandlerRootView>
148148
);
149149
};
150150

0 commit comments

Comments
 (0)