模块 AppRegistry 未注册可调用模块(调用 runApplication) [英] Module AppRegistry is not registered callable module (calling runApplication)

查看:43
本文介绍了模块 AppRegistry 未注册可调用模块(调用 runApplication)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用原生基础在 react-native 中制作应用程序.我对这两件事都很陌生.当我运行应用程序时,它给了我这个错误:

I am using native base for making app in react-native. I am new to both things. When I run the app It gives me this error:

这是我的代码:

export default class Point extends Component {

    render() {
        return (
            <Container>
                <Header>
                    <Left>
                        <Button transparent>
                            <Icon name='menu' />
                        </Button>
                    </Left>
                    <Body>
                        <Title>Header</Title>
                    </Body>
                    <Right />
                </Header>
            </Container>
        );
    }
}

这是我的版本截图

和 nativebase 版本是 "native-base": "^2.1.2"

and nativebase version is "native-base": "^2.1.2"

推荐答案

我为我的应用程序使用了原生基础,这里是链接 原生基础

I was using native base for my app here is link native base

你可以看到没有像这样的应用程序注册表

and you can see there is no app registry like this

 AppRegistry.registerComponent('Point', () => Point) 

但我必须这样做才能运行我的应用

but i have to do this to run my app

这篇关于模块 AppRegistry 未注册可调用模块(调用 runApplication)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆