When to use it
Attach to a React Native ScrollView or compatible list. Keep refresh state and completion in application code.
Apply Lumen semantic colors to React Native pull-to-refresh behavior.
Native example
Attach to a React Native ScrollView or compatible list. Keep refresh state and completion in application code.
<ScrollView
refreshControl={(
<LumenRefreshControl
accessibilityLabel="Refresh projects"
refreshing={refreshing}
onRefresh={refreshProjects}
/>
)}
>
{content}
</ScrollView>Reference
The primary shared and platform-specific options exposed by LumenRefreshControl.
| API | Values or type | Default | Description |
|---|---|---|---|
| refreshing | boolean | Required | Reports whether the native indicator is active. |
| onRefresh | () => void | Required | Starts the application refresh operation. |
| indicatorTone | brand · accent · neutral | brand | Selects the semantic native indicator color. |
| accessibilityLabel | string | Application-provided | Names the content refreshed by the gesture. |
Native behavior
Attach to a React Native ScrollView or compatible list. Keep refresh state and completion in application code.
The native refresh gesture remains owned by the scroll container. Supply an accessibility label that describes the refreshed content.