249 questions
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) ...
1 vote
2 answers
1k views
React Native Crash - Error: Exception in HostFunction: Loss of precision during arithmetic conversion: (long) 13.63636334080342
Hello there, I’m facing the following error while resetting the navigation to Home after a successful login. The app crashes as soon as the navigation resets. I’m able to reproduce the crash on a ...
0 votes
2 answers
379 views
Back Button Closes the App Instead of Navigating to the Previous Screen on Android React Navigation
When pressing the back button on Android, the app closes unexpectedly instead of navigating to the previous screen. Video demonstrating the issue I have tested the issue by creating two separate apps ...
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 ...
0 votes
1 answer
135 views
linkTo no longer working in React Navigation 7
After updating to "@react-navigation/native": "^7.0.3", using linkTo from useLinkTo() isn't working as it used to in ReactNative. My linking config is somewhat complex: const ...
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
1 answer
138 views
How to hide custom tab bar on specific stack/ screen in nested navigation?
My nav structure looks like this App.js <Stack.Navigator initialRouteName="Auth"> <Stack.Screen name="Auth" component={AuthLayout} ...
1 vote
1 answer
610 views
How to animate switching tabs using react navigation bottom tabs
I need to make simple slide animation when switching tabs without sharp twitching and i also need to refresh the tab to get effect from updated state I tried two ways First: added unmountOnBlur: true;...
0 votes
1 answer
94 views
Properly add types for React Navigation Nested Stack v6
I'm migrating from react-navigation v5 to v6 I'm trying to add type checking and I encouraged a problem that couldn't find a solution from the docs import { StackScreenProps } from '@react-...
0 votes
1 answer
441 views
The Correct Way to Type React Navigation Drawer
WHat's the correct way to type RNavigation, currently I am doing this on The App export type DrawerNavigatorType = { Store: unknown; ImagesStudio: { images: string[] }; // }; const Drawer = ...
0 votes
1 answer
880 views
Fade Out/In Animation React Navigation
I am developing a React Native application using REACT NAVIGATION V6. I would like to add a custom transition for my navigation: fade out the current screen -> fade in the new screen. Any help on ...
0 votes
1 answer
134 views
React Navigation: `useLinkProps` not generating correct link in browser
I am using react-navigation v6 and expo 49. Bundler for web is webpack. I need help with react navigation. It is around how links are generated. I have created a linking config which has a config like ...
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 ...