How to use the @react-navigation/routers.DrawerActions.openDrawer function in @react-navigation/routers

To help you get started, we’ve selected a few @react-navigation/routers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-navigation / navigation-ex / packages / drawer / src / views / DrawerView.tsx View on Github external
const handleDrawerOpen = () => {
    navigation.dispatch({
      ...DrawerActions.openDrawer(),
      target: state.key,
    });

    navigation.emit({ type: 'drawerOpen' });
  };