您的位置:首页 > 移动开发

ReactNative bug:Application has not bean registered.This is either due to require()error dur

2017-03-30 15:02 645 查看

错误提示

Invariant Violation:Applicaction 项目名 has not been registered.This is either due to a require() error during initialization or failure to call AppRegistry.registerCommponent.



这一般是我们更改注册时发生的错误

这是说明你的注册时的key值不对,key应该跟你的项目名一致

}
}
AppRegistry.registerComponent('项目名', () => setup);

const styles = StyleSheet.create({});


就这样简单的解决了我们的问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐