Skip to main content

Swipe

Reusable Swipe component

Example

import {useState} from 'react';

import {Swipe} from '@lad-tech/mobydick-core';

export const SwipeWidget = () => {
const [active, setActive] = useState(false);
return (
<Swipe onPress={setActive} active={active} disabled={false} />
);
};

Props

Required
active

TYPE
boolean

Manage on/off swipe

Required
disabled

TYPE
boolean

Disable element

Required
onPress

TYPE
(isActive: boolean) => void

Function for control active