Questions tagged [react-native-navigation]

Use this tag for questions related to the React Native Navigation library that provides a complete native navigation solution for React Native apps.

React Native Navigation provides 100% native platform navigation on both iOS and Android for React Native apps.

For more info see github project

https://github.com/wix/react-native-navigation

1903 questions
0
votes
2 answers

How to pass data into another screen with "this.props.navigation.goBack()" in react-native?

I'm creating a react native app and now I wanted to pass data between screens. If I pass data "this.props.navigation.navigate('MyScreen1',{MyData:'Hello this is a data'})" like this it is passing data correctly. But I want to pass data inside…
Sidath
  • 379
  • 1
  • 9
  • 25
0
votes
0 answers

Can't reset route react native navigation

I can't clear my routing history, i try this but he puts that i don't know why. Can you help me pls :) e …
0
votes
0 answers

React native unable to resolve module @react-navigation/native

My App worked perfectly fine the other day and I didn't change anything but as soon as I try to run it on android now it shows this:
0
votes
1 answer

Functional componenet in a class component React Native

Hi I ve got the following functional component which by itself it works perfectly function MeditationList({route, navigation}) { const adress = route.params; return ( You have a number of…
Obsesie
  • 171
  • 2
  • 14
0
votes
3 answers

How to refresh screen in componentdidmount ( react native )?

I am use bottom navigation, i get value form asyncStorage in componentDidMount but every time i have to hard refresh for new value, when i please first screen to second screen and get new value in first screen but new value is not updated. so how…
0
votes
0 answers

React Native promise and queue

I have a localization in my project; and before calling the component, I want to call the setI18nConfig () method, which is responsible for languages. But when I call it, the component is processed first, and then this method. That is, this method…
0
votes
2 answers

react-navigation navigate is not a function error. - Class component

I'm using react native class component and I'm using react-navigation to route in the app. the guide is mostly for the functional component and I'm trying to implement it with class components. but when i trying to get it from reactnavigation it…
0
votes
1 answer

Navigate to a specific component from parent (React Native Navigation)

Noob question about React Native Navigation. This is my App.js. When I launch it, I see Component1. import React, { Component } from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from…
FabioDev
  • 694
  • 1
  • 12
  • 27
0
votes
0 answers

How would i hide the splash screen on componentDidMount in this situation

I want to add to call SplashScreen.hide() once the screen has loaded import { createAppContainer } from 'react-navigation'; import { createStackNavigator } from 'react-navigation-stack'; import { createBottomTabNavigator } from…
prog
  • 173
  • 1
  • 3
  • 12
0
votes
0 answers

React native expo fetching data from API Network Request Failed error

I'm currently trying to run this code fetch('http://112.134.77.211:8080/users/toFrontend?email=baby@gmail.com') .then((response) => response.json()) .then((json) => { this.setState({ data: json.movies }); …
0
votes
1 answer

How do I find the specifications for the "renderIcon" function used in the React Navigation TabBarIcon/TabBar elements?

This function is used but I just can't find where it's defined. I also see a lot of tutorials using this code - so I'm not sure how people are understanding how this is being used. I pulled this from the source code: 20 export default function…
0
votes
1 answer

React Native Nested Navigation

import React from 'react'; import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs'; import {MaterialCommunityIcons,Feather} from '@expo/vector-icons'; import {VideoTab} from './VideoTab'; import {EbookTab} from…
0
votes
1 answer

How to use stack navigation with bottom tab navigator using React navigation 5.X

I am updating my code to use the react-navigation 5.x, but I don't know how to implement the stack navigation with a bottom tab navigator in this version. I use the bottom tab navigator only on the screens that appear after the user logs in. On the…
0
votes
2 answers

React Native: How do I redirect a user after completing a form?

I have two screens, HomeScreen and AddScreen. When a user clicks on a button on the HomeScreen, they are directed to the AddScreen. After a user completes the form on the AddScreen, I want them to return to the HomeScreen. I am using…
Darron
  • 323
  • 4
  • 14
1 2 3
99
100