Questions tagged as 'react-navigation'

1
answer

I need to print the user's name in the drawernavigation but the data is in the state as I access it?

I need to print the name of a user in the drawer navigation part but I have the data saved in the state but I do not know how to access them and probe passing props and passing the argument but I still do not get anything. The problem is that...
asked by 28.05.2018 / 01:30
0
answers

React-navigate error

Hello good afternoon I have a problem with react-native in specific with the react-navigate library:    The component for route 'Home' must be a React component. For example: import MyScreen from './MyScreen'; ... Home: MyScreen, }    Y...
asked by 06.05.2018 / 20:09
1
answer

How to know which route I am with react-navigation in react-native? [closed]

I am using a Rea-navigation StackNavigation in react-native, but I need my header component to be very personalized according to the route, I will place the custom heade component, but I can not get the name of the route I am on or something tha...
asked by 04.05.2018 / 23:49
0
answers

react-native-navigation does not work when I stop the sever

React-native-navigation works perfectly while the server is running react-native run-android after stopping execution, the application does not navigate between the screens and closes the application. versions    "react-native": "0....
asked by 29.12.2018 / 20:33
0
answers

Problems wanting to bring a parameter with getParam in React Native

I have a question, I'm doing an app with React Native and Redux, similar to what Twitter is. In the Home a timeline of tweets is loaded of which when I play in one of them, I have to show that particular tweet. The problem is that when I click o...
asked by 14.11.2018 / 02:39
0
answers

Problem to detect active screen in React Native

I have currently built a navigation bar using react-native-navigation, with the createStackNavigator function. The problem is that I need to change the color of the icon image when the user navigates to that screen. I tried changing the state wh...
asked by 28.10.2018 / 16:34
2
answers

work with props and states react native

good morning I'm new to react native and I have 2 windows and then one is the login and the other shows a list of objects then I want to know how I do to take the name with which I made the session to the other window and display it in a < Te...
asked by 26.09.2018 / 17:20
1
answer

Error when implementing unit tests in React Native with Reactnavigation

I'm having the following problem:    Invariant Violation: Native module can not be null. at invariant (node_modules/fbjs/lib/invariant.js:42:15) at new NativeEventEmitter (node_modules/react-native/Libraries/EventEmitter/NativeEventEmit...
asked by 17.07.2018 / 21:38
0
answers

Error React-Native

I'm building an app with react-native and I get the following error: This is the file where I get that error: This is all the code of my file with error: import React, {Component} from 'react'; import {     Container,     Conten...
asked by 30.05.2018 / 21:08
1
answer

How to display a load icon while loading another view in react-native? [closed]

I have my views already finished, but some must load several data before being able to be shown, that's why you notice a delay going from one view to another, I would like that by pressing the button that takes me to the other view, it shows an...
asked by 06.05.2018 / 16:33