react-native-swipeout
iOS-style swipeout buttons that appear from behind a component

To do for v3.0.0 (issues)
Done
Needs Outside Verification
Not Done
Installation
npm install --save react-native-swipeout
Usage example
See index.ios.js for a more detailed example.
See the Wiki usage tips.
var Swipeout = require('react-native-swipeout')
// Buttons
var swipeoutBtns = [
{
text: 'Button'
}
]
// Swipeout component
<Swipeout right={swipeoutBtns}>
<View>
<Text>Swipe me left</Text>
</View>
</Swipeout>
Props
All props are optional.
autoClose | bool | false | auto close on button press |
open | string/bool | | "left", "right", or false |
left | array | [] | swipeout buttons on left |
onClose | func | | function when buttons are hidden |
onOpen | func | | function when buttons are exposed |
props | object | null | pass props to swipeout (ex: style ) |
right | array | [] | swipeout buttons on right |
scroll | func | | prevent parent scroll |
Button props
component | string | null | pass custom component to button |
props | object | null | pass props to button (ex: onPress , style , underlayColor ) |
text | string | 'Click Me' | text |
type | string | null | danger /delete , primary , secondary , success |