Questions tagged [react-router-native]

40 questions
0
votes
0 answers

Use React Router (native) for React native?

I'm onto universal app, and wanna try React router for web and native. The problem is that react-router-native doesn't have animations when routes change. I'm thinking overriding history.push so that it actually starts a new activity (android) or…
eugene
  • 39,839
  • 68
  • 255
  • 489
0
votes
2 answers

how to parse values from JSON.stringified data in a text component sent from a different page

with regard to this tutorial "React Router Native - Passing Data" https://www.youtube.com/watch?v=SdOWxoH3HLg by @benawad user:4272160 I can't figure out how to extract bob or 5 from {"val1:"bob","val2":5} from the stringified string data in…
user1613312
  • 374
  • 2
  • 15
0
votes
1 answer

How to change react-router-native location on native-module callback

I'm building a react-native application that displays Service overlay (like those facebook messenger bubble heads), implement in Android only, and on the overlay click it should go back to the app in a specific screen. I'm using react-router-native…
Thiago Loddi
  • 2,212
  • 4
  • 21
  • 35
0
votes
1 answer

React Router - get History from Router reference

In react-router (esp. react-router-native) is it possible to get a reference to History object of the Router from the reference of the Router? (to be able to route from anywhere?)
Divyansh Goenka
  • 997
  • 2
  • 12
  • 35
0
votes
0 answers

Why react-router-native does not render my component?

Trying to implement a protectedRoute utils for react-native project, which basicly looks for JWT. First it shows loading indicator, and if there is no JWT present it would redirect to /login. const LoadingComponent = () => (
0
votes
1 answer

React Native: no style on views works when I use react-router / react-router-navigation

Advance, sorry if my english is not the best. I've not been working on React Native for a very long time and now I have to implement an app with it. I currently use: Android Studio 3.3 Android 9.0 Api 28 React Native 0.57.8 React Router 4.3.1 React…
0
votes
0 answers

Does react-router-native have an activeStyle or activeClass for Link components?

The question is pretty self explanatory but I'd very much like to syle my links differently depending on whether the route is active or not. If Link does not have the ability to style itself based on whether it's the active route, is there a way to…
jscul
  • 748
  • 1
  • 10
  • 25
0
votes
1 answer

getUserConfirmation not working react native

I am tying to add authentication to routes using getUserConfirmation of "react-router-native", But getUserConfirmation is never getting called. I couldn't find much documentation on it as well. const getConfirmation = (message, callback) => { …
Pram
  • 2,383
  • 2
  • 19
  • 21
0
votes
1 answer

get props object from link react-router-native

How to do this? For example i find this: text but if i want display this.props.location.state, then write undefined.
kutirie
  • 583
  • 1
  • 4
  • 9
0
votes
1 answer

Flow-typed libdefs outdated for `react-router-native`?

Are flow-typed libdefs outdated for react-router-native? When flowing this working code, I get: 3: import { Route, Switch, Redirect } from 'react-router-native'; ^^^^^ Named import from module `react-router-native`. This module has no…
sdeleon28
  • 329
  • 1
  • 11
1 2
3