1.0.6 • Published 9 months ago
custom-animated-drawer-hmynnd v1.0.6
custom-animated-drawer-hmynnd
Add an elegant animated drawer to your React Native app.
Installation
npm install custom-animated-drawer-hmynnd
Usage
import React from 'react';
import { View, Text } from 'react-native';
import DrawerSceneWrapper from 'custom-animated-drawer-hmynnd';
const App = () => {
return (
<DrawerSceneWrapper>
<View>
<Text>Your app content goes here</Text>
</View>
</DrawerSceneWrapper>
);
};
export default App;
Minimum Requirements
- Node.js 18.x or later
- React Native 0.71.x or later
- @react-navigation 6.0.0 or later
- react-native-reanimated 3.1.0 or later
Props
Prop | Type | Description | |
---|---|---|---|
children | component | component that should animate while drawer is opening | |
<!-- | onOpen | function | A callback function that is called when the drawer is opened. |
onClose | function | A callback function that is called when the drawer is closed. | --> |