iOS-style swipeout buttons that appear from behind a component
npm install --save react-native-swipeout
note: see example/index.ios.js for more detailed example
var Swipeout = require('react-native-swipeout')
// Buttons
var swipeoutBtns = [
{
text: 'Button'
}
]
// Swipeout component
<Swipeout btns={swipeoutBtns}>
<View>
<Text>Swipe me left</Text>
</View>
</Swipeout>
| Prop | Type | Optional | Default | Description |
|---|---|---|---|---|
| autoClose | bool | Yes | false | auto close on button press |
| backgroundColor | string | Yes | '#dbddde' | |
| btns | array | No | [] | swipeout buttons |
| Prop | Type | Optional | Default | Description |
|---|---|---|---|---|
| backgroundColor | string | Yes | '#b6bec0' | background color |
| color | string | Yes | '#ffffff' | text color |
| onPress | func | Yes | null | function executed onPress |
| text | string | No | 'Click Me' | text |
| type | string | Yes | 'default' | keyword styles: default, primary, secondary |
