55 questions with no answers
0 votes
0 answers
27 views
Unexpected back behavior when navigating to nested screen react-navigator v6
I'm using React Navigation with a structure where the DrawerNavigator contains multiple StackNavigators. From a screen inside one stack (e.g., HomeStack), I navigate to a nested screen (OrderDetails) ...
0 votes
0 answers
64 views
How to properly wait for reset navigation in react native (react-navigator 6)?
React Navigation: Component in Tab Navigator not unmounting properly after parent Stack Navigator reset The Problem I have a nested navigation structure with a Stack Navigator containing a Tab ...
0 votes
0 answers
33 views
Nested stack is not accessible in react-navigation/bottom-tabs
I am currently started working in a react native project which is running in react-native: 0.67.5. In there they have used a lot of packages and some are deprecated. I have changed most of them to new ...
1 vote
0 answers
1k views
Detect `history.back()` with Expo Router
With Expo Router, there are several ways to detect navigation changes (usePathname, state from Navigator, etc.). For certain use cases it would be helpful to also be able to check if the navigation ...
3 votes
0 answers
590 views
react-navigation navigate function causing unhandled exception 'RCTComponentViewRegistry: Attempt to query unregistered component
I am receiving an event from a react native webview and in that event attempting to navigate to a different stack. However the app crashes every time with the following *** Terminating app due to ...
0 votes
0 answers
49 views
How to fix :Typeerror: (0 , _native.createnavigatorfactory) is not a function. React Native app
Whenever I run my react native app through expo go (iOS) it shows that app-bundling had completed, but a few seconds later it would show the error: typeerror: (0 , _native.createnavigatorfactory) is ...
1 vote
0 answers
726 views
How to open login url in browser inside app and pass value to react-native?
I am learning react-native, so pretty new to it. I am curious how to implement browser sign-in and then pass value to store in AsyncStorage. As an example AWS Console app redirects to signin.aws....
0 votes
0 answers
438 views
How to cache Screens in React Navigation?
In React Navigation's StackNavigator, whenever I switch the current Screen, regardless of whether I've previously loaded the new Screen, it always reloads. This is not what I want; I want certain ...
0 votes
0 answers
166 views
React navigation headerRight not rendering
how can I render headerRight in React navigation? I have tried everything that is told in this tutorial: https://reactnavigation.org/docs/header-buttons/ Still not working/rendering on the screen. ...
2 votes
0 answers
33 views
Navigation from a stack screen to tab navigator with reset does not work
I have login screen and main screen. My main screen has Tab.Navigator. When i click on login button of login screen i want to navigate to main screen and remove all the previous routes which are ...
0 votes
0 answers
293 views
How to listen only for push and pop events (and nothing else) in React Navigation?
I need some custom animation/transition logic that I want to drive when React Navigation native stack navigator pushes or pops a screen, however, I'm stuck as I can't reliable detect only push and pop ...
0 votes
0 answers
571 views
React Navigation v6, prevent popping screen when navigating to a previous screen
I'm using React Navigation v6 for React Native, consider the following navigation routes state: 1: {key: 'ClubScreen-PVQtJb1EkSv6q_wqPYpAi', name: 'ClubScreen', path: undefined, params: {…}} 2: {key: '...
2 votes
0 answers
522 views
React Navigation DeepLinks not working in iOS with AppDelegate.swift
In my React Native app, I had to migrate its AppDelegate from Objective-C to Swift. After the migration, deeplinks stopped working: when a link is used, the app opens but it does not navigate to the ...
1 vote
0 answers
441 views
React navigation shared element transition forward works but does not 'transition' back
I'm having a nested stack with the "react-navigation-shared-element" (0.8.4, Expo sdk 37, react native 0.70.5, react-navigation 6) Clicking on a given card results in the proper transition ...
5 votes
0 answers
1k views
How to use cardStyleInterpolator in react navigation 6 in react native
According to the documention in version 6, we can use the cardStyleInterpolator like this import { CardStyleInterpolators } from '@react-navigation/stack'; // ... <Stack.Screen name="...