Questions tagged [react-navigation-drawer]

395 questions
0
votes
2 answers

Drawer not navigating to next screen in React Native Navigation 5

I am using react native drawer with navigation 5, I have created a drawer but from the drawer when I click some of option to navigate to next screen it gives me error like "Undefined is not object.. this.props" and when I define prop on top like…
0
votes
3 answers

2 headers in screen in Dashboard navigator

I am new in ReactNative. I am learning things by just seeing examples.I get stuck in one issue. In my project i have implemented drawer navigation and tab navigator every thing is working fine but my screen shows 2 headers. I tried a lot to remove…
Divyata Chauhan
  • 279
  • 4
  • 21
0
votes
1 answer

hide drawer in a specific screen

hey there i a mworking with a react native project using React router flux for navigation everything is ok except that i want to hide the drawer from signin Screen and tuto screen here is my code bellow const RouterRedux =…
user11583965
0
votes
4 answers

Unable to resolve @react-navigation/drawer in react native to create drawer navigation

I am trying to create new drawer navigation but getting this below error Unable to resolve "react-native-screens" from "node_modules\@react-navigation\drawer\src\views\DrawerView.tsx" Failed building JavaScript bundle. but same code i tried in new…
0
votes
1 answer

How to use firebase in DrawerNavigator and sync retrieve data

Objective: I want to retrieve the users name from firebase and then use in the Text component, but it returns before the data can be loaded from firebase, which causes the Text gets undefined. The Drawer code: export default Slidebar = (props)…
0
votes
1 answer

React native reset Drawer Items - react navigation nested stack navigation

My route structure is as Follows - StackNavigator -- SplaceScreen -- LoginScreen -- HomeScreen (Drawer Navigator) --- Listing Screen (Stack Navigator)(Default Screen that loads) --- Booking Screen (Stack Navigator) --- Profile…
VjLxmi
  • 400
  • 1
  • 4
  • 17
0
votes
1 answer

The app is crashing when I navigate while going back using pop()

Initially, the app was working fine, after which I created a custom stack over Authenticated stack (screens when the user is Authenticated). The app is crashing when I navigate while going back using pop(), but it works fine with navigate or…
0
votes
1 answer

Drawer Navigation do not appear. In fact, a Cannot call a class as a function appears

here I have a problem in my program. I want to bring up the Side Menu on the left side of the Cases2.js Page screen by pressing the OpenDrawernya button. But when I press the button, the error Cannot call a class as a function appears. I don't know…
0
votes
1 answer

How to give two different Drawer items for two different components in react-native?

I have a scenario where there is an anonymous drawer which consists of All books and a logged in user Drawer which consists of My books & all books. I have a Drawer Route Navigation file which consists of the drawer navigation. how can I reuse the…
0
votes
1 answer

How to add icons to drawer items using react-navigation?

None of the other questions/answers related to adding icons to drawer items have worked. Goal: use an image component as the drawer item's icon Problem: using answers supplied to other questions doesn't work. I get Reference Error: React is not…
Jim
  • 1,988
  • 6
  • 34
  • 68
0
votes
1 answer

navigationOptions in screen component is not working

If I set the navigationOptions in the screen component inside a StackNavigator to change the header of the stack inside a DrawerNavigator the navigationOptions are not taken into account. I can however pass defaultNavigationOptions which are taken…
0
votes
1 answer

Is it possible to turn off the drawerBackground screen overlap?

When open app on mobile i need to have a fully functional drawerNavigator (drawerType: front, and hide on swipe and on press on outside of screen close the drawer). But in tablet version i need to have always opened drawerNavigation with drawerType:…
0
votes
0 answers

How to use navigationOptions to trigger navigate() of a StackNavigator?

I'm trying to learn how to use react-navigation. I have a small piece of code here: import React from 'react'; import {AppRegistry} from 'react-native'; import { createAppContainer } from 'react-navigation'; import { createStackNavigator} from…
0
votes
1 answer

React Native drawer navigation: how to open drawer by clicking custom button in specific scene?

I've tried to open the drawer by clicking the following button (screenshot) in a specific scene. current status and here goes my code. // App.js import React, { Component } from 'react'; import { createAppContainer, createSwitchNavigator } from…