aksonov / aksonov/react-native-router-flux

Cannot get parameters on tab on page

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

描述

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

- react-native-router-flux v4.0.6
- react-native v0.57.4

### Expected behaviour
Getting parameters on tab.

### Actual behaviour
It's showing previous pages parameters.

I have a scene structure like on the down below. On singlePage I'm calling new page (tab_1) with the parameters by using Actions.tab({ param1: "foo" }) or Actions.tab_1({ param1: "param" }) but I can't get the parameters from tab_1 by using prop. I couldn't figure it out how I can access the parameters.

When I write the Actions on the console I can reach those parameters but when I try to write Actions.currentScene it's showing me singlePage parameters.
Plus when I try example from actual code it's also same.

```
componentDidMount() {
console.log(Actions);
console.log(Actions.currentScene);
this.pageInit();
}
```

### Scene:
```





```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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