mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
11 lines
336 B
TypeScript
11 lines
336 B
TypeScript
import * as React from 'react';
|
|
import { SwipeablePanel } from 'rn-swipeable-panel';
|
|
|
|
export const App: React.FC = () => {
|
|
const [isActive, setIsActive] = React.useState<boolean>(false);
|
|
|
|
const onClosePanel = () => setIsActive(false);
|
|
|
|
return <SwipeablePanel isActive={isActive} onClose={onClosePanel}></SwipeablePanel>;
|
|
};
|