1
0
mirror of https://github.com/tooot-app/app synced 2025-04-03 21:21:01 +02:00

Fixed emoji icon tap issue

This commit is contained in:
Zhiyuan Zheng 2021-05-10 17:41:32 +02:00
parent 7fb7c762ac
commit 7da8297b46
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
3 changed files with 5 additions and 5 deletions

View File

@ -112,7 +112,7 @@ const ScreenMeProfileFields: React.FC<StackScreenProps<
}, [mode, i18n.language, dirty, status, newFields])
return (
<ScrollView style={styles.base}>
<ScrollView style={styles.base} keyboardShouldPersistTaps='handled'>
{Array.from(Array(4).keys()).map(index => (
<View key={index} style={styles.group}>
<Text style={[styles.headline, { color: theme.primaryDefault }]}>

View File

@ -26,7 +26,7 @@ const ScreenMeProfileName: React.FC<StackScreenProps<
const { mutateAsync, status } = useProfileMutation()
const [displayName, setDisplayName] = useState(display_name)
const [dirty, setDirty] = useState(false)
useEffect(() => {
setDirty(display_name !== displayName)
@ -94,7 +94,7 @@ const ScreenMeProfileName: React.FC<StackScreenProps<
}, [mode, i18n.language, dirty, status, displayName])
return (
<ScrollView style={styles.base}>
<ScrollView style={styles.base} keyboardShouldPersistTaps='handled'>
<Input value={displayName} setValue={setDisplayName} emoji />
</ScrollView>
)

View File

@ -26,7 +26,7 @@ const ScreenMeProfileNote: React.FC<StackScreenProps<
const { mutateAsync, status } = useProfileMutation()
const [newNote, setNewNote] = useState(note)
const [dirty, setDirty] = useState(false)
useEffect(() => {
setDirty(note !== newNote)
@ -94,7 +94,7 @@ const ScreenMeProfileNote: React.FC<StackScreenProps<
}, [mode, i18n.language, dirty, status, newNote])
return (
<ScrollView style={styles.base}>
<ScrollView style={styles.base} keyboardShouldPersistTaps='handled'>
<Input value={newNote} setValue={setNewNote} multiline emoji />
</ScrollView>
)