react-navigation / react-navigation/react-navigation.github.io
Document params passing behavior in navigators
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 324
- 派生
- 2k
- PR 合并指标
- 30 天内没有已合并 PR
描述
https://github.com/react-navigation/react-navigation/issues/5646
answer i give is:
the route that you navigate to receives the params, not any of its children.
this rfc could help: react-navigation/rfcs#68
more discussion on this here: react-navigation/rfcs#43
we should document this.props.navigation.dangerouslyGetParent().getParam(...) as a way to get the params from the parent, or provide a method that gets params from the parent without the word dangerously maybe...
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从所引用的 issue #5646 以及 RFCs 68 和 43 开始,然后检查 navigator route parameters 的文档入口。记录 params 会传递给被导航到的 route,而不是其子级,并澄清使用 this.props.navigation.dangerouslyGetParent().getParam(...) 访问 parent-param 的相关讨论。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react, react-native
- 领域
- documentation, mobile-dev
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100