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({});
就这样简单的解决了我们的问题
相关文章推荐
- Application MyTest has not been registered. This is either due to a require() error during initialization or failure to call AppRegistry.registerComponent.
- React-Native坑1:Invariant Violation:Application 项目名 has not been registered.
- React-Native项目运行时报错:Application xxxProject has not been registered.
- React-Native坑1:Invariant Violation:Application 项目名 has not been registered.
- React Native Application 项目名 has not been registered.
- React - Native Application has not been registered(Android)
- The application **** has attempted to open a connection to a location inside the firewall and outside the firewall which is not
- bug:"Operation is not valid due to the current state of the object."
- WCF : 修复 Security settings for this service require Windows Authentication but it is not enabled for the IIS application that hosts this service 问题
- This may be due to a corruption of the heap, which indicates a bug in *.exe or any of the DLLs it has loaded.
- win2003 启动报错c0000135 this application has failed to start because csrsrv.dll was not found
- Posts Tagged ‘This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register问题的解决办法
- Unable to add window -- token null is not for an application---各种bug
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- The application is not licensed to modify or create schema for this type of data 解决办法
- an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- QT:This application has failed to start because the application configuration is incorrect...
- This system is not registered to Red Hat Subscription Management.
- The call to LoadLibrary(YourExtensionName) failed, Win32 error 0n14001, “This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.”