All Questions
36 questions
1
vote
0
answers
41
views
I am trying to use the "@react-navigation/drawer": "^7.0.19" but it was not working properly
// Navigation.js
import React, { useState } from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { createDrawerNavigator } from '@react-navigation/drawer';
...
0
votes
1
answer
77
views
How do I switch screens with a touchableOpacity button and where and how do I put the navigation. I dont even know where or how to start
I have an index.js screen and I made a HomeScreen.js screen. I made a touchable Opacity button wanting to go form the index.js screen to the HomeScreen.js once pressed. I tried watching tutorials and ...
2
votes
0
answers
175
views
React Native Expo - "Rendered fewer hooks than expected" in ContextNavigator
I'm facing an issue in my React Native Expo project where I'm getting the following error message:
Error: Rendered fewer hooks than expected. This may be caused by an accidental early return statement....
0
votes
2
answers
189
views
React-native / expo navigation fail with 'withNavigation'
I'm making an android app and recently added onBoarding screens, so I edited my app.js (thats contain the navigator) to make it perfect.
Before adding onBoarding Screens, I was able to use 'this.props....
0
votes
0
answers
138
views
Error: Couldn't find a navigation object. Is your component inside NavigationContainer?
I went through the other answers to this question but none has worked for me i'm trying to do a button in the LoginScreen that navigates to the RegisterScreen but get the error
This is what my App.js ...
1
vote
2
answers
579
views
Unable to install react-navigation-header-buttons
I had installed an old version before,but i want to upgrade to version 8, but I dont know how to face these errors
these are the current errors i am facinh
npm ERR! code ERESOLVE
npm ERR! ...
0
votes
1
answer
788
views
React Native - Error when i want to navigate
I have an error when i try to navigate using react.navigation.
I also have a visual bug since i've added react navigation.
Here's my code for app.js :
import React, { useState } from "react";...
1
vote
2
answers
2k
views
Navigation between one navigation container to another navigation container in react-native
import React, { useState } from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { NavigationContainer } from '@react-navigation/native';
. . ....
0
votes
2
answers
129
views
AsyncStorage not functioning, errors and database input buttons freezing
So, I am currently working on a program that is supposed to be a mock-up of a Student Educational Plan for a school. The basic gist of it is that it displays a home page with buttons to a form to ...
2
votes
0
answers
372
views
@react-navigation/native-stack could not be found within the project or these directories:
I actually have the react-navigation/native-stack module in my project files but still, I am receiving this module missing error.someone please help.
Here is my package.json:
"scripts": {
...
1
vote
1
answer
1k
views
Is it possible to make it render when the tab is pressed? in react-native?
I made a tab navigator. When MyTabs is rendered, the Feed component and Notifications component in Tab.Screen are executed, and console.log('Feed') and console.log('Notifications'); run together.
...
0
votes
0
answers
25
views
BottomTab.Screen sometimes doesn't work on real devices
i'm using react-native with reactnativation
BottomTab.Screen touches well in the emulator, but when testing with a real device, somethime Touch works fine but sometime second BottomTab cannot be ...
0
votes
1
answer
507
views
error 401 unauthorized I see when I am successfully logged in. But after logging in, the token gets Revoked and the response is error 401 unauthorized
that error appears to me
[Unhandled promise rejection: Error: Request failed with status code 401]
that's the Ropo link
https://github.com/ahmedsawy1/Carna-Project
It contains two folders, the first ...
1
vote
1
answer
451
views
Problem when adding React Navigation Drawer - TurboModuleRegistry.getEnforcing(..)
I'm having a problem when adding a Drawer Navigator, with the 'react navigation' package.
What I have already tried:
Tripled checked the packages listed on the documentation of React Navigation
Re-...
1
vote
1
answer
48
views
hi i'm using react-native and react-navigation
when i try to navigation.navigate this error occure
Cannot read property 'navigate' of undefined
this is my code
when i try to navigation.navigate this error occure
Cannot read property 'navigate' of ...