react-native 入门之错误集锦

问题1、Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.Check the render method of StartUp.instantiateReactComponent

解决办法:

一定要使用, 直接使用,会报错

export default class Imooc_gp extends Component {

    render() {
        return (
             {
                        let Component = route.component;
                        return 
                    }
                }
            />
        )
    }
}
AppRegistry.registerComponent('imooc_gp', () => Imooc_gp);

  • 参考

你可能感兴趣的:(react-native 入门之错误集锦)