aksonov / aksonov/react-native-router-flux

pass prop on tab press

未关闭
#3,525 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

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