Examples
A managed Expo app under
example/
showcases every feature. Run it locally:
cd example
npm install
npx expo start
What's in the example app
| Example | Source | Shows |
|---|---|---|
| Basic | basic.tsx | The minimal SwipeListView setup. |
| SectionList | sectionlist.tsx | useSectionList with section headers. |
| Per-row config | per_row_config.tsx | Independent rows via a returned <SwipeRow>. See Per-row behavior. |
| Standalone row | standalone_row.tsx | Using <SwipeRow> outside a list. |
| Swipe to delete | swipe_to_delete.tsx | Removing a row on swipe. |
| Swipe-value UI (legacy) | swipe_value_based_ui_legacy.tsx | Driving UI from the onSwipeValueChange JS callback. |
| Swipe-value UI (reanimated) | swipe_value_based_ui_reanimated.tsx | Recommended: driving UI from the injected swipeAnimatedValue SharedValue. See Migration §5. |
| Actions | actions.tsx | Activation values + action status changes. See Actions. |
| Manual close | close_row_manually.tsx | Closing a row imperatively via its ref. See Manually closing rows. |
| Accessibility | accessibility.tsx | Screen-reader swipe actions. |
Snack
Try the (v3) Snack in your browser: https://snack.expo.io/@jemise111/react-native-swipe-list-view