react-navigation / react-navigation.github.io

Home of the documentation and other miscellanea
https://reactnavigation.org/
MIT License
312 stars 1.89k forks source link

Use Deep Link, occur error #1276

Open zhaoyiming0803 opened 1 year ago

zhaoyiming0803 commented 1 year ago

I'm using Deep link refer to doc: https://reactnavigation.org/docs/deep-linking#setup-with-expo-projects.

// the following code caused an error to occur const prefix = Linking.createURL('/')

function App() { const linking = { prefixes: [prefix] }

return ( <NavigationContainer linking={linking} fallback={Loading...}> {/ content /} ) }


- error message in my ternimal, but compiler is successfull, error occur only running app in ios simulator
``` shell
Error: expo-linking needs access to the expo-constants manifest (app.json or app.config.js) to determine what URI scheme to use. Setup the manifest and rebuild: https://github.com/expo/expo/blob/main/packages/expo-constants/README.md, js engine: hermes

How should I solve this error???