652 questions
0
votes
0
answers
38
views
I'm trying to go to another page in react-native but it isn't going anywhere
I'm a student and new to the language, I don't know everything there is about programing, so please, if you know what is happening, explain in a simple way.
I seriously doesn't know what is happening
...
0
votes
0
answers
53
views
React Navigation not redirecting to DrawerNavigator after app restart for one user type but works for another
I’m working on a React Native app with two user flows: Employer and Employee. Both flows are structured similarly:
The user completes an onboarding process.
After onboarding, they are redirected to ...
0
votes
1
answer
71
views
Hide drawer navigation from nested individual stack screen screens
I'm trying to hide/disable the ability to use the drawer navigation menu when viewing a nested stack screen.
I have three separate screens (DataScreen, AircraftScreen, AirportScreen) in a Stack ...
2
votes
1
answer
104
views
React Native Navigation Typescript Typing
I am having issues typing my props in a component that expects parameters. I have read through the documentation and have followed the guides. This is my component that receives parameters.
type ...
0
votes
1
answer
141
views
Can I use Stack-Navigation in Modal?
I want to put Stacks into Modal by react-native.
I tried to put stack navigator in Modal, but I can't press pressable element such as TouchableOpacity or Pressable and etc...
ps. If there's no way to ...
0
votes
1
answer
173
views
Type error with React Navigation's CompositeScreenProps for Nested Navigators
I'm trying to follow this guide for type checking with TypeScript and React Navigation but I'm getting this error anytime I try to navigate to a screen in another tab:
Argument of type '[AppRoutes....
3
votes
0
answers
724
views
React native: Drawer on the home page, stack on all other pages
I would like my app to have a drawer on the main page, and stack navigation on all the rest of the pages. I'm planning on setting out pages so that only some will be accessed from the drawer, others ...
0
votes
1
answer
274
views
React navigation failing in React Native
I have a working app and project with React Native 0.72.1 with react navigation stack version 6.3.17, I have recently updated my app with 0.74.1 and suddenly I am getting error in my stack navigation ...
1
vote
2
answers
2k
views
ERROR Error: Exception in HostObject::get for prop 'RNSModule': java.lang.UnsatisfiedLinkError:
ERROR Error: Exception in HostObject::get for prop 'RNSModule': java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mobileshopsten-...
0
votes
1
answer
243
views
TypeScript Error with Nested Navigators in React Navigation
I'm working on a React Native project using TypeScript and React Navigation. I have a nested navigator setup where I have a BottomTabNavigator which contains a BlocklistStackNavigator. I'm facing a ...
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
2
answers
721
views
Nothing is shown on the screen with react navigation in Expo
I'm trying a simple routing with Expo and React Navigation, but it doesn't show anything on the screen.
This is my referral code
`import * as React from 'react';
import { NavigationContainer } from '@...
0
votes
2
answers
611
views
React Navigation, How to reset screen or entire stack from totally different stack
const ListStack = createStackNavigator();
function ListPage() {
return (
<ListStack.Navigator screenOptions={{headerShown: false}}>
<ListStack.Screen name="List" ...
1
vote
0
answers
96
views
React Stack Navigation TypeScript - Cannot reset using route from parent
I have a typed, nested stack navigator and am trying to reset the navigation from a screen to another which is on the parent. TypeScript is refusing to accept it as a valid name to reset, only screens ...
1
vote
0
answers
119
views
Drawer navigation onclick event not working
Once I open the drawer the navigation when clicking isn't working in certain devices and the event in other devices works but not always.
import {StyleSheet} from "react-native";
import { ...
4
votes
1
answer
8k
views
Expo Router - when using router.push() to a screen in a different tab, unable to return to root of push
Scenario:
A component that navigates to a specific route
This component is used in multiple screens
The component is used on screens that are not in the stack of the tab it is pushing the route to
...
0
votes
1
answer
266
views
How can I navigate from a top tab screen to a stack screen using react native navigation?
I'm making an expo application using react native. I have a stack navigator and I have a material top tab navigator as a stack screen. From ProfileAccountScreen I can navigate to the TopTabNavigator ...
-1
votes
1
answer
329
views
how to solve "Unable to resolve "@react-navigation/native-stack" from "App.js""
I am new to react-native. I was running the programing but this problem kept coming.
I tried looking the solution all over the internet. Installed the react-navigation, react-navigation/native, react-...
0
votes
1
answer
86
views
React navigation v6 does not navigate to a nested screen before viewing that screen
In a react-native (Expo managed and react-navigation v6) app I have a navigation structure as follows:
When I want to navigate from the PayWall screen to ListPage with navigation.navigate('ListPage') ...
2
votes
2
answers
4k
views
react-native-reanimated module causing Android app to crash on launch
I'm building a react native app using Expo managed workflow that is working perfectly when I test it in the Expo Go app. When I then tried further testing it in a standalone app by creating an APK ...
0
votes
1
answer
3k
views
How to display tab Navigation in Stack screen in React Native
I am very new to React Native and I am currently implementing my navigation using the React Navigation docs. I am trying to have my Tab Navigators displayed on my stack screens but I'm not sure how to ...
1
vote
1
answer
105
views
react native tab navigation and stack navigation nested usage
Error:
The action 'NAVIGATE' with payload {"name":"Contacts"} was not handled by any navigator.
Do you have a screen named 'Contacts'?
If you're trying to navigate to a screen in a ...
0
votes
1
answer
65
views
navigation.navigate() from @react-navigation/native refreshes page
I am using useNavigation() from @react-navigation/native
My code would be like
const navigation = useNavigation();
navigation.navigate('Home');
And the weird thing is navigate() refreshes the page in ...
1
vote
0
answers
360
views
Initialize to nested screen with back button to stack root in react-native using react-navigation
I am using React Native and the React-Navigation library to replicate the nav behavior in the iOS Reddit app Apollo: https://i.imgur.com/983G04Q.png
My routing structure is as follows:
TabNavigation
|-...
0
votes
0
answers
55
views
Navigate with payload was not handled by any navigator
I have a Stack Navigator:
<NavigationContainer independent={true}>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={MainScreen}
...