2017-09-01 155 views
0

在我的第一頁上我有一個列表,我得到一個列表。這在第一次通話中有效。但是,當我去到其他屏幕this.props.navigation.navigate('OtherScreen');,並返回到舊屏幕反應本機重新安裝屏幕

const backAction = NavigationActions.back({ 
    key: null, 
}); 
this.props.navigation.dispatch(backAction) 

我的名單不會得到刷新,因爲componentDidMount方法,我稱之爲提取將不會再次觸發的。我也嘗試過componentWillUpdate,但這不會再次觸發。

我怎麼能強制屏幕提示重新安裝,當我進入呢?

回答

相關問題