SwipeButton
SwipeButtons are buttons that can be swiped to the left or right to trigger an action.
Import
import { SwipeButton } from '@nomada-sh/react-native-eyecandy';
Example
Props
Requiredwidth
| Type |
|---|
| number |
height
| Type | Default |
|---|---|
| number | 80 |
title
| Type |
|---|
| string |
padding
| Type | Default |
|---|---|
| number | 5 |
onFail
() => void;
| Type |
|---|
| function |
onSuccess
() => void;
| Type |
|---|
| function |
marginTop
| Type |
|---|
| number |
marginBottom
| Type |
|---|
| number |