Questions tagged [react-navigation-v5]

729 questions
-1
votes
1 answer

Getting error when trying to install react navigation

This is what I am getting when running the installation command in my command prompt
-1
votes
2 answers

Pass navigation from child component to parent getting TypeError

I'm facing an issue whenever i tried to navigate to another screens. I'm using the navigation in child component and it doesn't work even i passed the props to the parent component. This is my first time on using react navigation. I've tried many…
amrxlamn
  • 3
  • 4
-1
votes
1 answer

useState array not updated when invoking function from another screen

I'm trying to add items to an array saved as a local state (using useState) through a function that is sent to another screen as a navigation param. Assume i have ScreenA which looks: ScreenA = () => { const[obj,setObj] =…
-1
votes
1 answer

How do I use tabBarOnLongPress in bottom navigation(react navigation v5)?

I couldnt find and example or snippets of how to use tabBarOnLongPress on react navigation v5.If somebody's done it already,help?
-1
votes
1 answer

React Navigation version 5.x : Passing states and function to all screens

I am trying to configure react navigation in my react native app which has persistent user authorization. const Stack = createStackNavigator(); export default class App extends Component { constructor() { super(); this.state = { …
-1
votes
1 answer

When you press tab icon no not respond

But when pressing a long distance from icon work normally. Imgur
-1
votes
1 answer

Multiple Stack Navigators on one screen

How do you go about showing multiple Stack.Navigators on one Drawer.Screen with React Navigation 5. Let's say I have 2 types of products: Mobile Phones and Tablets on my Dashboard Drawer.Screen. Mobile Phones and Tablets represent a separate…
-1
votes
1 answer

Unable to navigate to another Stack with react-navigation

I am trying to navigate from a screen ('Settings' screen to 'Auth' in the below example) when the user signs out using navigation.navigate('Auth') but I get an error: "Do you have a screen named 'Auth'?" I don't understand what's wrong here. In…
SkyPower
  • 103
  • 2
  • 13
-3
votes
2 answers

I am trying to hide the back arrow navigation button but it does not work

hello guys I am trying to hide the back-arrow navigation button but it does not work function MyStack(){ return(
1 2 3
48
49