RefreshControl React Native
RefreshControl React Native
React Native 🌞
RefreshControl
This component is used inside a ScrollView or ListView to add pull to refresh
functionality. When the ScrollView is at scrollY: 0 , swiping down triggers an
onRefresh event.
Example #
RefreshControl
Note: refreshing is a controlled prop, this is why it needs to be set to true in the
onRefresh function otherwise the refresh indicator will stop immediately.
https://reactnative.dev/docs/refreshcontrol 1/5
5/1/2021 RefreshControl · React Native
Reference
Props
Inherits View Props.
refreshing
TYPE REQUIRED
bool Yes
onRefresh
TYPE REQUIRED
function No
colors
The colors (at least one) that will be used to draw the refresh indicator.
enabled
https://reactnative.dev/docs/refreshcontrol 2/5
5/1/2021 RefreshControl · React Native
bool No Android
progressBackgroundColor
color No Android
progressViewOffset
number No Android
size
tintColor
l No iOS
https://reactnative.dev/docs/refreshcontrol 3/5
5/1/2021 RefreshControl · React Native
color No iOS
TYPE REQUIRED PLATFORM
title
string No iOS
titleColor
Title color.
color No iOS
Previous Next
« Pressable ScrollView »
Example
Props
refreshing
onRefresh
colors
enabled
progressBackgroundColor
progressViewOffset
size
https://reactnative.dev/docs/refreshcontrol 4/5
5/1/2021 RefreshControl · React Native
size
tintColor
title
titleColor
DOCS
Getting Started
Tutorial
More Resources
COMMUNITY
Contributor Guide
DEV Community
FIND US
Blog
GitHub
MORE
React
Privacy Policy
Terms of Service
https://reactnative.dev/docs/refreshcontrol 5/5