Iam using react-native-router-flux for navigation in react-native.
My tabs use same component with different props. Everything is fine when first tab change but prop not changed when return same tab.
What method should I use when return to the same tab?
App.js
<Scene key="root" hideNavBar={true}>
<Scene key="rootTabBar" tabs={true} hideNavBar={true}>
<Scene
key="firstCaregory"
title="First Category"
id={1}
component={Category}
/>
<Scene
key="secondCategory"
title="Second Category"
id={2}
component={Category}
/>
</Scene>
</Scene>
Categry.js
componentDidMount() {
this.props.fetchNews(this.props.id);
}