react-navigation / react-navigation/react-navigation.github.io

Use Deep Link, occur error

オープン
#1,276 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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???

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

レポートにリンクされているディープリンクのドキュメントから始め、そこに記載された Expo のセットアップを、示されている app.json、expo-linking、NavigationContainer の使用方法と比較してください。提供された例を使って iOS シミュレータでエラーを再現し、その後、マニフェストと再ビルドの要件についてドキュメントに明確化が必要かどうかを判断してください。ドキュメント化されたセットアップでこのランタイムエラーに対処できるか、必要な設定を明確に説明できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react-native
領域
documentation
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。