use rngh scrollview in search horizontal list (#4350)

zio/stable
Hailey 2024-06-04 11:06:31 -07:00 committed by GitHub
parent c352e0f8b4
commit e4b4d854d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import {
TextInput, TextInput,
View, View,
} from 'react-native' } from 'react-native'
import {ScrollView as RNGHScrollView} from 'react-native-gesture-handler'
import {AppBskyActorDefs, AppBskyFeedDefs, moderateProfile} from '@atproto/api' import {AppBskyActorDefs, AppBskyFeedDefs, moderateProfile} from '@atproto/api'
import { import {
FontAwesomeIcon, FontAwesomeIcon,
@ -977,7 +978,7 @@ function SearchHistory({
styles.selectedProfilesContainer, styles.selectedProfilesContainer,
isMobile && styles.selectedProfilesContainerMobile, isMobile && styles.selectedProfilesContainerMobile,
]}> ]}>
<ScrollView <RNGHScrollView
keyboardShouldPersistTaps="handled" keyboardShouldPersistTaps="handled"
horizontal={true} horizontal={true}
style={styles.profilesRow} style={styles.profilesRow}
@ -1022,7 +1023,7 @@ function SearchHistory({
</Pressable> </Pressable>
</View> </View>
))} ))}
</ScrollView> </RNGHScrollView>
</View> </View>
)} )}
{searchHistory.length > 0 && ( {searchHistory.length > 0 && (