A powerful React Native swipe component.
The React Native Swipeable is a powerful swipe component compatible with both iOS and Android platforms. It provides a user-friendly way to incorporate swipe actions within your React Native applications.
To install the React Native Swipeable component, follow these steps:
npm install react-native-swipeable
After installation, ensure your ListView/TableView items are wrapped with the Swipeable component. Here’s a basic example using the component and its props:
<Swipeable
leftContent={<LeftContentComponent />}
rightContent={<RightContentComponent />}
leftButtons={[<ButtonComponent />]}
onLeftActionRelease={() => { /* Handle left action release */ */}}
rightButtons={[<ButtonComponent />]}
onRightActionRelease={() => { /* Handle right action release */ */}}
leftActionActivationDistance={125}
rightActionActivationDistance={125}
leftButtonWidth={75}
rightButtonWidth={75}
/>
The React Native Swipeable component offers a simple yet effective way to integrate swipe actions into your applications. With customizable content, button support, and various activation options, this component enhances user interactions within React Native projects.