add props

This commit is contained in:
Hailey
2024-06-05 23:59:38 -07:00
parent a724d24955
commit 371a1b84e5
2 changed files with 4 additions and 0 deletions
@@ -1,5 +1,6 @@
import React, {useState} from 'react'
import {ListRenderItemInfo, View} from 'react-native'
import {KeyboardAwareScrollView} from 'react-native-keyboard-controller'
import {GeneratorView} from '@atproto/api/dist/client/types/app/bsky/feed/defs'
import debounce from 'lodash.debounce'
@@ -66,6 +67,8 @@ export function StepFeeds() {
keyExtractor={keyExtractor}
style={[a.flex_1]}
onEndReached={!query ? () => fetchNextPage() : undefined}
onEndReachedThreshold={2}
renderScrollComponent={props => <KeyboardAwareScrollView {...props} />}
/>
</>
)
@@ -55,6 +55,7 @@ export function StepProfiles() {
renderItem={renderItem}
keyExtractor={keyExtractor}
onEndReached={!query ? () => fetchNextPage() : undefined}
onEndReachedThreshold={2}
renderScrollComponent={props => <KeyboardAwareScrollView {...props} />}
/>
</>