'React navigation native web routes not working when deployed
I am using NavigationContainer with the linking prop to implement web routes in React Native.
const linking = {
prefixes: [
'https://***',
],
config: {
screens: {
Home: '',
ReserveAndPay: 'details',
},
},
};
The details route can be accessed locally at:
http://localhost:19006/details
but when deployed https://***/details is giving a 404 error.
Am I missing a setting in the linking object?
edit: site is built for web using Expo and deployed to an AWS S3 bucket
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
