undefined is not a function (evaluating 'this.props.renderScene(route,this)')
2017-02-22 14:16
429 查看
缺少renderScene函数,
var NV = React.createClass({
render: function(){
return(
<Navigator
style={{flex:1}}
initialRoute={{
component: List,
title: '邮轮',
passProps: {},
}}
renderScene={(route, navigator) => {
let Component = route.component;
return <Component {...route.params} navigator={navigator}/>
}} />
);
}
});书上没有renderScene函数,加上这段代码就行了,代码是固定的
var NV = React.createClass({
render: function(){
return(
<Navigator
style={{flex:1}}
initialRoute={{
component: List,
title: '邮轮',
passProps: {},
}}
renderScene={(route, navigator) => {
let Component = route.component;
return <Component {...route.params} navigator={navigator}/>
}} />
);
}
});书上没有renderScene函数,加上这段代码就行了,代码是固定的
相关文章推荐
- undefined is not an object (evaluating 'this.props.nav.push')的解决过程
- undefined is not an object (evaluating 'this.props.navigator.push')
- 【ReactNative】undefined is not an object(evaluating 'this.props.navigator')
- undefined is not an object (evaluating 'this.props.navigator.push')
- 出现TypeError: 'undefined' is not a function (evaluating '$')错误
- React-Native 0.43.4 undefined is not an object (evaluating '_props[registrationName]') 正确的解决姿势
- React native:TypeError: undefined is not a function (evaluating 'addListener')
- undefined is not a function (evaluating ‘UIManager.setChildren(containerTag,createdTags)’)
- react:undefined is not a function(this.State({flag:true,}))
- rn 0.38 升到0.42 后 android出的问题 undefined is not function evaluating globalObject.hasownproperty('promi
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- 运行React Native示例出现null is not an object (evaluating 'this.state.text')
- Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is
- setValue:forUndefinedKey this class is not key value coding-compliant for the key
- 微信小程序中的坑:thirdScriptError this.setData is not a function;
- xib自定义UIView报错误 "forUndefinedKey:]: this class is not key value coding-compliant for the key"
- This function is not included in this version of jmail.
- AngularJS Argument 'customersController' is not a function, got undefined,errors.angularjs.org/1.3.1
- WebStorm中运行React15.3.1控制台报“React.render is not a function”错误