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

Linking inconsistency between closed app and open app deep link

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

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

主要言語
JavaScript
スター
324
フォーク
2k
PR マージ指標
30日以内にマージされた PR はありません

説明

When I do the following deeplink myApp://detail/123 (123 being an ID) with the app being closed and the following config

screens: {
  detail: {
    path: 'detail/:id',
  },
},

I'll get the correct state

{"key": "detail-SbcExuYkpp6-Y4u9rYWjO", "name": "detail", "params": {"id": "123"}}

but if the app is already open (foreground or background), and I send another deeplink, then this is the state I get

{"key": "detail-vqAsOQ3ZBfydQjUCcpX9e", "name": "detail", "params": {"initial": false, "params": {"id": "123"}, "screen": "detail", "state": undefined}}

So for some reason, you get a nested params

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

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

はじめの一歩

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

調査の方向性

まず、示されている detail/:id 設定を使用して、アプリを閉じた状態で、次にフォアグラウンドまたはバックグラウンドの状態で myApp://detail/123 deeplink を再現します。結果のナビゲーション状態を比較し、アプリが開いている場合に params がネストされる理由を特定します。両方の起動状態で同じパラメーター構造が生成されれば完了です。

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

評価

技術スタック
javascript, react-native
領域
mobile
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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