i am using "react-native-router-flux": "^3.38.0"
. I need to call the componentWillMount
of a page, but after the first time that it gets there the componentWillMount
does not get called.
Edition:
please below find the code for navigation:
const RouterComponent = () => {
return (
<Router sceneStyle={{ paddingTop: 65 }} navigationBarStyle={{ backgroundColor: '#81b71a' }}>
<Scene key='auth' initial>
<Scene key='login' component={LoginForm} title='login here' />
</Scene>
<Scene key='main' >
<Scene key='employeeCreate' component={EmployeeCreate} title='create employee' />
<Scene
initial
key='employeeList'
component={EmployeeList}
title='Emplyees'
rightTitle='add'
onRight={() => Actions.employeeCreate()}
/>
<Scene
key='employeeEdit'
component={EmployeeEdit}
title='edit employee'
/>
</Scene>
</Router>
);
};
export default RouterComponent;
It was a known issue in v3.38 which was fixed in a later version. Try updating the package to the latest version. Issue
4.0.0-beta.21 is the latest