I'm not sure if this is a feature or a bug:
When I change the value of passProps of a navigator, I expect it would re-render again, just like other react components do. However, it seems it will not do so.
For example,
<NavigatorIOS
style={{flex: 1}}
initialRoute={{
component: MyChatList,
title: "My Chat List",
passProps: {
recentChats: this.state.ChatListData.recentChats,
renderRow: this.renderRecentChat,
},
}} />
When the state ChatListData (which comes from flux) updates, the navigator will not update it self correspondly.
I'm not sure if this is a feature or a bug:
When I change the value of
passPropsof a navigator, I expect it would re-render again, just like other react components do. However, it seems it will not do so.For example,
When the state
ChatListData(which comes from flux) updates, the navigator will not update it self correspondly.