Disha Awasthi
Disha Awasthi

Reputation: 33

Is there any common library that can be used for navigation for both web and mobile

I have tried "react-navigation" in sample app created by using "create-react-app" command. It's working in mobile but not working for web. Also tried implementing navigation using "react-router-dom", which is working perfectly for web. But not working for mobile giving ‘Error: Invariant failed: Browser history needs a DOM’.

enter image description here

Upvotes: 0

Views: 163

Answers (1)

Sajib saha
Sajib saha

Reputation: 371

https://reactrouter.com

//this site will help you for Both Native and web thanks

Upvotes: 1

Related Questions