我正在使用"react-native-router-flux": "^3.38.0"
。我需要调用页面的componentWillMount
,但在第一次到达之后,componentWillMount
不会被调用。
版:
请在下面找到导航代码:
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;