I am using react-navigation. I am passing propsfrom a react-native component to the modal from react-navigation which is opened on a tap.  export default class SomeComp extends Component { ...  render() {     const { navigate } = this.props;     re...
I am looking desperately for a possibility to check if a previous screen exists in ReactNavigation.   Using this.props.navigation.goBack() returns false if no previous route exists, but I can not use it because if a previous route exists I get redire...
Suppose I have two screens:   Screen A Screen B   I am initially landed on Screen A. When I click on a Button I navigate to Screen B. When I press Back Button, I am again navigated to Screen A.  I want to call an action creator when I am navigated to...
I have just implemented an Auth stack and having an issue with my TabNavigator - when I click my second "Favourites" tab which is in my tab navigator and referenced the MainNavigator within my switch I get the message There is no route named...
I've been trying to get up and running with react navigation but I run into a problem when I try to move navigation items into their own components.  HomeScreen.js  import React, { Component } from 'react';  import {   StyleSheet,   View,...
Hello Guys,  I have some issue with React navigation V3, In my app, I have an Authentication step to Entering to Home Screen and it doesn't have a Drawer Navigation as a default, it will be Stack Navigator      Splash => Sign-up => Sign-in...
I have update password function inside ScreenPassword, but I want to update password by tapping Save button on screen header.  NavSettings.js  const routeConfigs = {     Password: {         screen: ScreenPassword,         navigationOptions: {...
So I've been follow this tutorial and adapting for what I need.  I've checked the other answer but can't quite make out what I'm missing?  For the search engines, the error is: undefined is not an object, router, getStateForAction...
I have a tab navigation. One of my tabs has a form and I would like to disable navigate event if my form data is not saved.  In ver.1, the tabBarOnPress method provides previousScene, scene and jumpToIndex, so I was able to check which scene I am lea...
I have the following route structure:  StackNavigator -StackNavigator -TabNavigator --Tab1 ---Route 1 (Stack) (initial) ---Route 2 (Stack)  --Tab2 ---Route 3 (Stack) (initial) ---Route 4 (Stack)   When I visit Tab1 -> Route 1 -> Route 2 -> T...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.