aksonov / aksonov/react-native-router-flux
pass prop on tab press
- 主要语言
- JavaScript
- 星标
- 8.9k
- 派生
- 2.1k
- PR 合并指标
- 30 天内没有已合并 PR
描述
Working with _react native 0.59 and router flux 0.4.6_, i want to pass some prop, when pressing the tab , while **maintaining the state of the tab**. For eg: if i am on screen c of tab A, and switching from tab B to tab A, i want to see the see screen c of tab A, with some prop passed.
I tried using, **Actions.TabA({"prop":"some Prop"})**, but no luck.
The problem i am facing is that, while working in the flow, **on pressing a button , screen changes and so is the tab. But the initial screen defined for the tab always gets pushed**, giving unnecessary api calls. The workaround i thought is mentioned above, but that too isn't working.
Please suggest.
贡献指南
评估
这个 Issue 还没有评估数据。