aksonov / aksonov/react-native-router-flux

Modify Tab items on runtime

未关闭
#3,578 0 条评论 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.2
- react v16.8.3
- react-native v0.59.9

Is it possible to modify the RNRF Tabs component during runtime? I have to hide some tabs according to user privilege and I can't seem to find out how to accomplish this since my logic kicks in way after the initialisation of the Scenes/Tabs.
I'm having difficulty finding out if this is supported or even stumble upon workarounds.

### Expected behaviour
Support modifying the TabBar during operation and not only on initialization

### Actual behaviour
Unable to find a way to modify the RNRF TabBar items (even just the style) during operation and in the middle of app runtime

### Steps to reproduce
1. Have a functioning base implementation of the RNRF Tabs. Specially as a main bottom navigation option module
2. A scenario where a certain tab must be modified (hidden in my case).

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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