Dismiss keyboard on drag in starter pack screens (#6537)

This commit is contained in:
Adam Rowe
2024-11-25 14:04:28 -05:00
committed by GitHub
parent 723bbfc58a
commit 6c81090021
2 changed files with 2 additions and 0 deletions
@@ -97,6 +97,7 @@ export function StepFeeds({moderationOpts}: {moderationOpts: ModerationOpts}) {
!query && !screenReaderEnabled ? () => fetchNextPage() : undefined !query && !screenReaderEnabled ? () => fetchNextPage() : undefined
} }
onEndReachedThreshold={2} onEndReachedThreshold={2}
keyboardDismissMode="on-drag"
renderScrollComponent={props => <KeyboardAwareScrollView {...props} />} renderScrollComponent={props => <KeyboardAwareScrollView {...props} />}
keyboardShouldPersistTaps="handled" keyboardShouldPersistTaps="handled"
disableFullWindowScroll={true} disableFullWindowScroll={true}
@@ -86,6 +86,7 @@ export function StepProfiles({
!query && !screenReaderEnabled ? () => fetchNextPage() : undefined !query && !screenReaderEnabled ? () => fetchNextPage() : undefined
} }
onEndReachedThreshold={isNative ? 2 : 0.25} onEndReachedThreshold={isNative ? 2 : 0.25}
keyboardDismissMode="on-drag"
ListEmptyComponent={ ListEmptyComponent={
<View style={[a.flex_1, a.align_center, a.mt_lg, a.px_lg]}> <View style={[a.flex_1, a.align_center, a.mt_lg, a.px_lg]}>
{isLoading ? ( {isLoading ? (