Skip to content

Commit

Permalink
fix: bottom sheet layout issue interrupting with animated view
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 committed Jan 30, 2025
1 parent 5c16879 commit 0bfe9b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package/src/components/UIComponents/BottomSheetModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ export const BottomSheetModal = (props: PropsWithChildren<BottomSheetModalProps>
});

return (
<Modal animationType='fade' onRequestClose={handleDismiss} transparent visible={visible}>
<GestureHandlerRootView style={{ flex: 1 }}>
<GestureHandlerRootView style={{ flex: 1 }}>
<Modal animationType='fade' onRequestClose={handleDismiss} transparent visible={visible}>
<TouchableWithoutFeedback onPress={handleDismiss}>
<View style={[styles.overlay, { backgroundColor: overlay }, overlayTheme]}>
<GestureDetector gesture={gesture}>
Expand All @@ -143,8 +143,8 @@ export const BottomSheetModal = (props: PropsWithChildren<BottomSheetModalProps>
</GestureDetector>
</View>
</TouchableWithoutFeedback>
</GestureHandlerRootView>
</Modal>
</Modal>
</GestureHandlerRootView>
);
};

Expand Down

0 comments on commit 0bfe9b6

Please sign in to comment.