react-everywhere / re-start

react-native template to target multiple platforms :globe_with_meridians: :iphone: :computer: with single codebase.
https://medium.com/@amoghbanta/write-once-use-everywhere-with-react-native-d6e575efe58e#.nfl50gwfg
MIT License
1.3k stars 85 forks source link

Native routing example #41

Closed clipsmm closed 6 years ago

clipsmm commented 6 years ago

How can move from one screen to another?

I have tried js this.props.router.push('/home')

But nothing is working

amoghbanta commented 6 years ago

The template uses react-router out of the box. You can find the documentation here. I don't think that programmatic routing is supported in their latest version.

clipsmm commented 6 years ago

The routing part is not very clear, they should probably include more of that in the documentation...added react-native-router-flux and it works perfectly

amoghbanta commented 6 years ago

How do you manage your routing for the web? I don't think react-native-router-flux will work with react-native-web.