react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

Does'nt Navigator work?

Open 6pm opened this issue 10 years ago • 9 comments

Default component Navigator not work? I not see this component in list your section "Exported modules". Thank you for answer.

6pm avatar Sep 17 '16 22:09 6pm

That's right, Navigator is not supported. You should use one of the web routers.

necolas avatar Sep 18 '16 15:09 necolas

Just to confirm, @necolas, will it be supported in the future? Or is there some reason against trying to support it?

RangerMauve avatar Sep 19 '16 13:09 RangerMauve

I don't think it will ever be supported. NavigatorExperimental aims to work on web and you could use that once it's complete. Until then, there are dozens of web routing libraries including react-router (which can work on native platforms too).

necolas avatar Sep 19 '16 18:09 necolas

Awesome. Thanks for clarifying.

RangerMauve avatar Sep 19 '16 18:09 RangerMauve

Hi necolas, can you please point me to a react router example for native which does not need navigator?

KalKhera avatar Sep 23 '16 04:09 KalKhera

react-router 4 can handle native apparently, using memory history instead of browser history, otherwise, you have things like https://github.com/jmurzy/react-router-native

MoOx avatar Sep 23 '16 04:09 MoOx

Merci Monsieur, thanks for quick response

KalKhera avatar Sep 23 '16 04:09 KalKhera

Note also that react-router-native is gonna mimic react-router@next (v4) also. As stated:

Please note that React Router v4 was just released. Over the next few weeks, React Router Native will be refactored to make it fully compatible with v4.

sospedra avatar Oct 03 '16 13:10 sospedra

Unfortunately, that was written in October or so 6 months since react-router-native has been updated. Still very grateful for that work, but wondering what if any draw backs are there to using react-router@next (a) in web (b) in iOS/Android if anybody knows?

zargold avatar Apr 23 '17 18:04 zargold