block drawer gesture on recent profiles
This commit is contained in:
committed by
Eric Bailey
parent
c5496f5fb1
commit
c1a6d82c07
@@ -1,5 +1,4 @@
|
|||||||
import {Pressable, StyleSheet, View} from 'react-native'
|
import {Pressable, ScrollView, StyleSheet, View} from 'react-native'
|
||||||
import {ScrollView as RNGHScrollView} from 'react-native-gesture-handler'
|
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
@@ -8,6 +7,7 @@ import {makeProfileLink} from '#/lib/routes/links'
|
|||||||
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
||||||
import {Link} from '#/view/com/util/Link'
|
import {Link} from '#/view/com/util/Link'
|
||||||
import {UserAvatar} from '#/view/com/util/UserAvatar'
|
import {UserAvatar} from '#/view/com/util/UserAvatar'
|
||||||
|
import {BlockDrawerGesture} from '#/view/shell/BlockDrawerGesture'
|
||||||
import {atoms as a, tokens, useBreakpoints, useTheme} from '#/alf'
|
import {atoms as a, tokens, useBreakpoints, useTheme} from '#/alf'
|
||||||
import {Button, ButtonIcon} from '#/components/Button'
|
import {Button, ButtonIcon} from '#/components/Button'
|
||||||
import {TimesLarge_Stroke2_Corner0_Rounded as XIcon} from '#/components/icons/Times'
|
import {TimesLarge_Stroke2_Corner0_Rounded as XIcon} from '#/components/icons/Times'
|
||||||
@@ -50,9 +50,10 @@ export function SearchHistory({
|
|||||||
styles.selectedProfilesContainer,
|
styles.selectedProfilesContainer,
|
||||||
!gtMobile && styles.selectedProfilesContainerMobile,
|
!gtMobile && styles.selectedProfilesContainerMobile,
|
||||||
]}>
|
]}>
|
||||||
<RNGHScrollView
|
<BlockDrawerGesture>
|
||||||
|
<ScrollView
|
||||||
|
horizontal
|
||||||
keyboardShouldPersistTaps="handled"
|
keyboardShouldPersistTaps="handled"
|
||||||
horizontal={true}
|
|
||||||
style={[
|
style={[
|
||||||
a.flex_row,
|
a.flex_row,
|
||||||
a.flex_nowrap,
|
a.flex_nowrap,
|
||||||
@@ -100,7 +101,8 @@ export function SearchHistory({
|
|||||||
</Pressable>
|
</Pressable>
|
||||||
</View>
|
</View>
|
||||||
))}
|
))}
|
||||||
</RNGHScrollView>
|
</ScrollView>
|
||||||
|
</BlockDrawerGesture>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
{searchHistory.length > 0 && (
|
{searchHistory.length > 0 && (
|
||||||
|
|||||||
Reference in New Issue
Block a user