react-navigation / react-navigation/react-navigation.github.io
Use Deep Link, occur error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 324
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
I'm using Deep link refer to doc: https://reactnavigation.org/docs/deep-linking#setup-with-expo-projects.
- Install dependencies:
{
"dependencies": {
"expo": "^49.0.13",
"expo-linking": "~5.0.2"
}
}
- Configure my app.json
{
"name": "ReactNativeDemo",
"displayName": "ReactNativeDemo",
"expo": {
"scheme": "mychat"
}
}
- import and use Deep Link
import * as Linking from 'expo-linking'
// the following code caused an error to occur
const prefix = Linking.createURL('/')
function App() {
const linking = {
prefixes: [prefix]
}
return (
<NavigationContainer linking={linking} fallback={<Text>Loading...</Text>}>
{/* content */}
</NavigationContainer>
)
}
- error message in my ternimal, but compiler is successfull, error occur only running app in ios simulator
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???
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the deep-linking documentation linked in the report and compare its Expo setup with the shown app.json, expo-linking, and NavigationContainer usage. Reproduce the error in an iOS simulator using the provided example, then determine whether the documentation needs clarification about the manifest and rebuild requirements. Done means the documented setup addresses this runtime error or clearly explains the required configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100