![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-native-swipeable-view
Advanced tools
This library allow you to create swipeable component, by exemple for a row in a list view, or anywhere you want. The code is based on the experimental SwipeableListView of react-native.
npm install --save react-native-swipeable-view
import SwipeableView from 'react-native-swipeable-view';
// Buttons
var btnsArray = [
{
text: 'Button',
},
];
// SwipeableView component
<SwipeableView btnsArray={ btnsArray }>
<View>
<Text>Swipe me left</Text>
</View>
</SwipeableView>
Prop | Type | Optional | Default | Description |
---|---|---|---|---|
isOpen | bool | Yes | false | Swipeout is open or not |
autoClose | bool | Yes | false | Auto-Close on button press |
btnsArray | array | No | [] | Swipe buttons array |
onOpen | func | Yes | Callback when swipe is opened | |
onClose | func | Yes | Callback when swipe is closed | |
onSwipeStart | func | Yes | Callback when swipe start | |
onSwipeEnd | func | Yes | Callback when swipe end | |
shouldBounceOnMount | bool | Yes | false | Bounce component on mount |
swipeThreshold | number | Yes | 30 | The minimum swipe distance required before fully animating the swipe |
isRTL | bool | Yes | false | True/false if the current language is right to left |
Prop | Type | Optional | Default | Description |
---|---|---|---|---|
props | object | Yes | Pass custom props to button component | |
component | string | Yes | null | Pass custom component to button |
onPress | func | Yes | null | Function executed onPress |
text | string | Yes | 'Click Me' | Text |
type | string | Yes | 'default' | Default, primary, secondary |
If you have any amelioration:
https://github.com/magrinj/react-native-swipeable-view/issues
FAQs
iOS-style swipeout buttons behind component
The npm package react-native-swipeable-view receives a total of 25 weekly downloads. As such, react-native-swipeable-view popularity was classified as not popular.
We found that react-native-swipeable-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.