有没有办法让Scene道具更新? - react-native-router-flux

时间:2017-02-12 18:17:49

标签: reactjs react-native redux react-redux react-native-router-flux

当使用RNRF时,我们通过Actions.fooScene({type: ActionConst.Type, data: this.some.data})传递道具,通过这样做,我们将下一个场景(fooScene)道具设置为静态值。

如果我将redux连接到下一个场景,我将能够知道商店已经更改(因为它会触发componentWillReceiveProps()),但在我的情况下,我将从Firebase获取最高级别​​的数据通过ListView传递数据 - 我无法在fooScene中检查商店的特定状态属性。我所能做的就是从Actions.fooScene()传递数据。

有没有办法可以让我们的下一个场景道具更新?

0 个答案:

没有答案
相关问题