react-navigation-stack Questions
3
I have a Tab Navigator inside a Stack Navigator and I want the header title to be dynamically configured as the title of the tab selected. Like there's 3 tabs: Home, Profile, Add Item and I want th...
Rotunda asked 23/2, 2020 at 14:27
25
I'm migrating a RN project version 4 to 5.
When switching screens there was an issue with a white background flashing in.
In v4 this was solved by setting cardStyle: { backgroundColor: material.co...
Benthos asked 24/1, 2020 at 17:6
2
I am trying to prevent user from going back by Android back button or gesture while a video is being recorded in React Native. As per documentation of React Navigation, it should be handled with th...
Figurant asked 11/8, 2020 at 18:9
2
Solved
I have 3 tabs and each tab contains a set of stack navigators.
Home Stack
const HomeNavigator = createStackNavigator();
const HomeStackNavigator = ({ navigation, route }) => {
return (
<...
Allegro asked 24/8, 2020 at 18:4
5
I have 3 tabs and each tab contains a set of stack navigators.
Home Stack
const HomeNavigator = createStackNavigator();
const HomeStackNavigator = ({navigation, route}) => {
return (
<...
Octahedral asked 25/8, 2020 at 14:54
3
In My below code when I use useNavigation() then it gives an error like my quiestion
How to use useNavigation, Please any one can solve this error... ERROR:Couldn't find a navigation object. Is you...
Luminance asked 4/1, 2021 at 12:36
7
If I set headerTransparent: true the other content which was usually rendered below it moves underneath it. How can I avoid that?
My code:
export class RegisterScreen extends Component {
static ...
Latoyalatoye asked 28/5, 2019 at 12:20
5
With TypeScript 3.9, React Native, React Navigation...
I got error:
interface StackParamList
Type 'StackParamList' does not satisfy the constraint 'Record<string, object | undefined>'.
Index...
Reuter asked 29/8, 2020 at 23:25
3
Following is the hierarchy of my app navigators
├── appNavigator ( Bottom Tab Navigator)
├── feed (Stack Navigator)
postDetailScreen
pageDetailScreen
ProfileDetailScreen
...other screens
├── no...
Freeland asked 24/6, 2020 at 8:37
20
When I am trying to use import {createStackNavigator} from @react-navigation/stack, it gives me an error
Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider
I ha...
Springs asked 20/11, 2020 at 14:28
6
Solved
I'm trying to type the useNavigation from React Navigation. I would like to be able to pass only the name of the route, but I get an error unless I also pass props for that route.
Following the doc...
Gallic asked 11/8, 2021 at 9:4
4
i want to mock useNavigation hook used inside my functional component. Any workaround how to mock it using jest?
import React from 'react';
import { useNavigation } from '@react-navigation/native'...
Cephalization asked 13/5, 2020 at 17:41
9
undefined Unable to resolve module @react-navigation/native from App.js: @react-navigation/native could not be found within the project.
If you are sure the module exists, try these steps:
1. Clea...
Saracen asked 1/4, 2020 at 16:4
2
Solved
How can I add a transition effect to Stacked Screes in React-native?
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false,
}}
>
<Stack.Screen name="H...
Nagoya asked 7/7, 2020 at 9:24
4
I want to customize the behavior of the default back button in stack navigator locally to one screen.
In the details assuming that on the stack there are screen1|screen2, I want to pass some props...
Walkout asked 8/4, 2020 at 16:11
3
Solved
I'm using navigation to navigate my react native app and I couldn't Paypass this issue. I did as the docs but nothing works for me.
The problem is I'm trying to use the navigation option to add a...
Dodder asked 20/10, 2018 at 10:51
2
Solved
Having two sets of stack navigators;
const SetOneScreens = () => (
<Stack.Navigator initialRouteName="AScreen">
<Stack.Screen name="AScreen" component={AScreen} /&...
Alsatian asked 16/8, 2020 at 22:14
1
Solved
Having a navigation type definition as bellow, when I navigate from e.g AOne to BTwo with id:99 the console log of props.route.params shows correct info. But props.route.params.id throws type error...
Purge asked 6/3, 2022 at 21:27
5
Solved
I'm using React Navigation 3.11 in my React Native app and I want to customize the back button in stack navigation. In the docs it says:
headerBackImage
React Element or Component to display ...
Antitoxin asked 6/6, 2019 at 10:39
3
Solved
I want to load dashboard to be active tab in react Native bottom tab. Navigation whenever dashboard is loaded but whenever I move to dashboard it moves to inbox screen which is the first element in...
Compagnie asked 8/4, 2019 at 10:4
2
Solved
I just installed react navigation version 6 and i received below error
Attempt to invoke interface method boolean com.swmansion.reanimated.layoutReanimation.NativeMethodsHolder.isLayoutAnimationEna...
Ornie asked 13/12, 2021 at 13:6
2
I am using @react-navigation/stack in my expo app and everything has been working fine. I wanted to start to add tab/drawer navigation to my app and keep running into the following 2 errors when I ...
Labor asked 16/8, 2020 at 21:18
1
In my app I am trying to use React Navigation's stack navigator with headerLargeTitle and headerTransparent enabled.
My implementation looks like this:
Navigator.tsx
<HomeStack.Navigator
initia...
Kattegat asked 30/8, 2021 at 19:59
1
I am running into an error when I am navigating from one screen to another but the app is running very well when someone takes a pull of my branch onto their machine.
Error:Element type is invalid...
Linden asked 1/9, 2020 at 17:16
6
Solved
I am developing a React native application for learning purposes. I am now implementing navigation using React Navigation. I am using stack navigation. But I cannot find a way to remove the previou...
Shrapnel asked 8/6, 2019 at 11:48
1 Next >
© 2022 - 2025 — McMap. All rights reserved.