Skip to main content

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

Required
width

Type
number

height

TypeDefault
number80

title

Type
string

padding

TypeDefault
number5

onFail

() => void;
Type
function

onSuccess

() => void;
Type
function

marginTop

Type
number

marginBottom

Type
number