react-navigation / react-navigation/react-navigation.github.io
Use Deep Link, occur error
未關閉
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 324
- 分支
- 2k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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???
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從報告中連結的深度連結文件開始,將其中的 Expo 設定與所示的 app.json、expo-linking 和 NavigationContainer 用法進行比較。使用提供的範例在 iOS 模擬器中重現該錯誤,然後判斷文件是否需要針對 manifest 和重新建置需求加以說明。完成的標準是:文件中的設定能夠處理此執行階段錯誤,或清楚說明所需的設定。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react-native
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100