Skip to content

Commit

Permalink
[PAY-1315] Fix mobile chat search screen takes 2 presses (#3534)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Jun 7, 2023
1 parent da64d93 commit 083b0ff
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
cacheUsersSelectors,
Status
} from '@audius/common'
import { View, Image } from 'react-native'
import { View, Image, Keyboard } from 'react-native'
import { useDispatch, useSelector } from 'react-redux'
import { useDebounce } from 'react-use'

Expand Down Expand Up @@ -220,7 +220,7 @@ export const ChatUserListScreen = (props: ChatUserListScreenProps) => {
topbarRight={null}
>
<ScreenContent>
<View style={styles.shadow} />
<View style={styles.shadow} onTouchStart={Keyboard.dismiss} />
<View style={styles.rootContainer}>
<View style={styles.searchContainer}>
<TextInput
Expand All @@ -247,6 +247,7 @@ export const ChatUserListScreen = (props: ChatUserListScreenProps) => {
keyExtractor={(user: User) => user.handle}
contentContainerStyle={styles.flatListContainer}
ListEmptyComponent={<ListEmpty />}
keyboardShouldPersistTaps='always'
/>
) : (
<View style={styles.spinnerContainer}>
Expand Down

0 comments on commit 083b0ff

Please sign in to comment.