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
Requiredactive
TYPE |
---|
boolean |
Manage on/off swipe
Requireddisabled
TYPE |
---|
boolean |
Disable element
RequiredonPress
TYPE |
---|
(isActive: boolean) => void |
Function for control active