aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/BottomDrawer.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-19 17:37:03 -0400
committerIvan Chen <ivan@tagg.id>2021-05-19 17:37:03 -0400
commit2531a2b672bb60e871d419453ae8558f0869bce3 (patch)
treeb23f79f6378384cffff9e032d12066014e9dafff /src/components/common/BottomDrawer.tsx
parent1a4113ee3e47be229e28fc5a935ada174781b00b (diff)
parentcddcfef3c32e08aedef1e4908bd477e45bef1974 (diff)
Merge branch 'master' into tma858-remind-users
# Conflicts: # src/components/friends/InviteFriendTile.tsx
Diffstat (limited to 'src/components/common/BottomDrawer.tsx')
-rw-r--r--src/components/common/BottomDrawer.tsx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/components/common/BottomDrawer.tsx b/src/components/common/BottomDrawer.tsx
index 3d9c0471..16e98690 100644
--- a/src/components/common/BottomDrawer.tsx
+++ b/src/components/common/BottomDrawer.tsx
@@ -71,15 +71,14 @@ const BottomDrawer: React.FC<BottomDrawerProps> = (props) => {
enabledContentGestureInteraction={false}
callbackNode={bgAlpha}
onCloseEnd={() => {
- setModalVisible(false);
- setIsOpen(false);
+ if (!isOpen) {
+ setModalVisible(false);
+ setIsOpen(false);
+ }
}}
/>
- <TouchableWithoutFeedback
- onPress={() => {
- setIsOpen(false);
- }}>
+ <TouchableWithoutFeedback onPress={() => setIsOpen(false)}>
<Animated.View style={[styles.backgroundView, {backgroundColor}]} />
</TouchableWithoutFeedback>
</Modal>