navigate('DrawerOpen') not working with createSwitchNavigator and createStackNavigator

Please check this expo snack.

I have a switch-navigator for logged-in and not-logged-in states.

When user is logged in, switcher loads a DrawerNavigator which loads Screen1 and loads the sidebar (SideBar.js) via contentComponent

Inside Screen1 I'm calling the this.props.navigation.navigate('DrawerOpen'); via the onPress event of the menu burger button. But it's not opening the drawer. What am I doing wroing

You call in a screen which isn't contained in DrawerNavigation, so it can't navigate. To open drawer in anywhere just use

import { DrawerActions } from 'react-navigation';
...
openDrawer = () => {
  this.props.navigation.dispatch(DrawerActions.openDrawer());
}
...

Navigate – Dallas College, sail or travel over (a stretch of water or terrain), especially carefully or with difficulty. While your Emergency Incidents Suite software is the same, you can expect to see exciting new safety solutions from us soon. Learn more and read the full announcement here.

use this:

this.props.navigation.openDrawer();

Navigate for Four-Year Institutions, Kids Definition of navigate. 1 : to travel by water Explorers navigated around the world. Navigate definition, to move on, over, or through (water, air, or land) in a ship or aircraft: to navigate a river. See more.

In React Navigation 3.x, you can use this.props.navigation.openDrawer(); to open the drawer in CreateDrawerNavigator. It is the same as using this.props.navigation.dispatch(DrawerActions.openDrawer());.You can checkout the official docs here : https://reactnavigation.org/docs/en/drawer-based-navigation.html

Navigate, Navigate will help you quickly find your academic requirements, connect you with college resources and help you stay on top of important dates and deadlines. It's � 24 synonyms of navigate from the Merriam-Webster Thesaurus, plus 14 related words, definitions, and antonyms. Find another word for navigate. Navigate: to operate or control the course of.

Navigate, Navigate is a comprehensive technology for four year institutions that brings together admin, faculty, advisors, & staff to support students. Define navigate. navigate synonyms, navigate pronunciation, navigate translation, English dictionary definition of navigate. v. nav·i·gat·ed , nav·i·gat·ing

Navigate, Navigate definition, to move on, over, or through (water, air, or land) in a ship or aircraft: to navigate a river. See more. navigate definition: 1. to direct the way that a ship, aircraft, etc. will travel, or to find a direction across, along…. Learn more.

EAB Navigate, Navigate is designed to help you manage your academic and non-academic lives. Through Navigate, you may access a full range of activities and resources� Another word for navigate. Find more ways to say navigate, along with related words, antonyms and example phrases at Thesaurus.com, the world's most trusted free thesaurus.

Comments
  • to which page should i add this line... either App.js or Screen1?
  • undefined is not an object (this.props.navigation) !
  • Now, DrawerActions should be imported from 'react-navigation-drawer'.