How to enable refresh control within screen? #2533
Answered
by
frankcalise
ComputerFrek
asked this question in
Q&A
-
|
Hi, how do I refreshcontrol in Screen component? I thought that Screen is an extension of Scroll View so I've tried this but it is not working. <Screen style={$container} preset="scroll" refreshControl={<RefreshControl refreshing={loading} onRefresh={onRefresh} />}>Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
frankcalise
Oct 22, 2023
Replies: 1 comment
-
|
Hey @ComputerFrek , it is an extension of <Screen
preset="scroll"
safeAreaEdges={["top"]}
contentContainerStyle={$container}
ScrollViewProps={{ refreshControl: <View /> }}
>However, ScrollView refreshControl |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
flexbox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @ComputerFrek , it is an extension of
ScrollView, you can utilize the prop namedScrollViewPropsto reach forrefreshControl:However,
refreshingandonRefreshare only props ofFlatList.ScrollView refreshControl
FlatList onRefresh
FlatList refreshing