【发布时间】:2017-05-05 16:07:29
【问题描述】:
有没有办法在 react-native 中完全刷新整个场景而不更新状态或强制重新渲染?
例如:
refreshButton(){
Actions.refresh()
}
P.S:我使用 react-native-router-flux 作为我的导航器。我确实尝试过Actions.refresh({key: "page_name"}),但没有成功。
【问题讨论】:
-
为什么需要这样做?
-
我想在手机再次重新连接到互联网时刷新列表视图。 @Scimonster
-
所以需要更新状态。
标签: reactjs react-native react-native-router-flux