Skip to content

Element type is invalid #3

@perfecten

Description

@perfecten

您好,代码clone下来后,npm i之后,app启动出错。信息如下


Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.

Check the render method of contentComponent.

把app.js中的以下代码注释掉,就能运行了

contentComponent: props => (

<Image
source={require('./images/run.png')}
style={[styles.icon]}
/>
<DrawerView.Items {...props}/>

)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions