aksonov / aksonov/react-native-router-flux
Cannot get parameters on tab on page
- 主要语言
- 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 还没有评估数据。