应用程序主体尚未注册 [英] Application main has not been registered
本文介绍了应用程序主体尚未注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近开始转换我的 react 本机应用程序并在 Expo 上运行,因此我可以在我的实际 android 设备上进行测试.我在上面收到此错误.从那时起,我就使用 Expo XDE 运行我的应用程序.我也在 Windows 机器上运行.
I have recently started to convert my react native app and running on Expo so i could test this on my actual android device. I am getting this error above. I have since then running my app using the Expo XDE. I am also running on a windows machine.
完整的错误信息是:
]1
我认为这与我的 index.js 有关,但在这里
I figured that this has something to do with my index.js, yet here it is
import { AppRegistry } from 'react-native';
import App from './App';
AppRegistry.registerComponent('projectTARA', () => 'App');
推荐答案
以下解决方案有效:
AppRegistry.registerComponent('main',() => App);
致谢:Rishav Kumar
Credits: Rishav Kumar
(你们就不能回复标记为解决吗?)
这篇关于应用程序主体尚未注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文