navigator中设置navigation属性时出错



  • render(){
    return(
    <Navigator
    sceneStyle={styles.container}
    initialRoute={{
    name:'TEST',
    component: TestClass1
    }}
    configureScene={(route) => {
    return Navigator.SceneConfigs.FloatFromRight;
    }}
    renderScene={(route, navigator) => {
    return <route.component {...route.params} navigator={navigator} />
    }}
    navigationBar={this.navBar}
    />)
    }

    navBar(){
    return(<Navigator.NavigationBar
    routeMapper={{
    Title:'test'
    }}
    style={styles.navBar}
    />);
    0_1463628834327_QQ20160519-0.png
    是我的使用方式不对吗?


登录后回复