import React from 'react';
import { Scene, Router,Actions } from 'react-native-router-flux';
import LoginForm from '../src/LoginForm';
import EmployeeList from '../src/EmployeeList'
import EmployeeCreate from '../src/EmployeeCreate'
const RouterComponent=()=>{
return(
<Router sceneStyle={{paddingTop:55}}>
<Scene
key="Login"
component={LoginForm}
title='Login' />
<Scene
key="EmployeeList"
component={EmployeeList}
title='EmployeeList'
rightTitle="ADD"
onRight={()=>console.log("error")} />
<Scene
Key="EmployeeCreate"
component={EmployeeCreate}
title='Employee' />
</Router>
);
export default RouterComponent;
嗨大家好我在使用路由器助焊剂导航时遇到此错误,当我添加第三个场景时就像在代码中显示此错误
答案 0 :(得分:0)
当我将路由器通量更新为4.0.0
时,工作正常