Skip to content

How to enable refresh control within screen? #2533

Answered by frankcalise
ComputerFrek asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ComputerFrek , it is an extension of ScrollView, you can utilize the prop named ScrollViewProps to reach for refreshControl:

<Screen
      preset="scroll"
      safeAreaEdges={["top"]}
      contentContainerStyle={$container}
      ScrollViewProps={{ refreshControl: <View /> }}
    >

However, refreshing and onRefresh are only props of FlatList.

ScrollView refreshControl
FlatList onRefresh
FlatList refreshing

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by flexbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants