aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-12 18:19:19 -0400
committerGitHub <noreply@github.com>2021-07-12 18:19:19 -0400
commit68f05afdf2d4ca29df60761c3d8f8ee445c1804d (patch)
tree5167be318418bdbcd6bede91e0e303f26e5ec0e4 /src/components
parent1b2dbdefd7f0f188c3aae9f3fb862a690c123468 (diff)
parentc179f04f13dfcde88e22097680d951c449ffcb38 (diff)
Merge pull request #500 from shravyaramesh/hotfix-doubletap-add-comment
[HOTFIX] Two taps are required to post a comment
Diffstat (limited to 'src/components')
-rw-r--r--src/components/moments/MomentPost.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx
index 319542f9..07295369 100644
--- a/src/components/moments/MomentPost.tsx
+++ b/src/components/moments/MomentPost.tsx
@@ -2,6 +2,7 @@ import {useNavigation} from '@react-navigation/native';
import React, {useContext, useEffect, useMemo, useRef, useState} from 'react';
import {
Image,
+ Keyboard,
KeyboardAvoidingView,
Platform,
StatusBar,
@@ -252,6 +253,7 @@ const MomentPost: React.FC<MomentPostProps> = ({
onPress={() => {
setVisible(!visible);
setFadeValue(new Animated.Value(0));
+ Keyboard.dismiss();
}}>
<View style={styles.contentContainer}>
<View style={styles.topContainer}>