aksonov / aksonov/react-native-router-flux

passing params/props when navigate using Actions[KEY].call()

未关闭
#3,613 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
8.9k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

描述

### Version
Tell us which versions you are using:

- react-native-router-flux v4.1.0-beta.8
- react v16.9.0
- react-native v0.61.5

### Expected behaviour
I can navigate from current scene to other scene and using params from current scene in other scene.
Previously i use Actions.({params: 1}) and call this.props.params to get value in OTHER_SCENE.
Now i want to use Actions[OTHER_SCENE_KEY].call({params: 1}), but call this.props.params return undefined. I want to get this.props.params value in OTHER_SCENE.

### Actual behaviour
call this.props.params return undefined.

### Steps to reproduce
1. change Actions.({params: 1}) to Actions[OTHER_SCENE_KEY].call({params: 1})
2. navigate from current scene to OTHER_SCENE
3. call this.props.params

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。