Four
Four

Reputation: 1084

Something I can use with React Native for web

I like React Native's some features like Flatlist, Modal, Animation. I wanted to develop for web with React Native or Expo. I use react navigation but have 404 errors in refresh pages. I also want When user put www.mywebsite.com/post/postid, it will go directly into postid's page. I tried react-router-dom with HashBrowser. Not great! I kind of want something better than hash browser. What can I use? Any advice please.

Upvotes: 0

Views: 298

Answers (1)

Giannis Apostolou
Giannis Apostolou

Reputation: 79

I use also react-native-web and react-navigation. If you want the react-navigation to work with the links correct, you must set up the config object like the documentantion

If you don't set up correctly the config object, react-navigation doesn't throw errors in your console, but it doesn't work right!

The question was before 3 months, but I hope this answer helps someone, with the same problem!

Upvotes: 1

Related Questions