jiangqqlmj / hunhedemo Goto Github PK
View Code? Open in Web Editor NEWRN和原生混合开发模式以及数据相互传递
RN和原生混合开发模式以及数据相互传递
{ "message": "Cannot find entry file index.android.js in any of the roots: ["path/node_modules/.npminstall/react-native/0.26.3/react-native"]", "name": "NotFoundError", "type": "NotFoundError", "status": 404, "errors": [ {} ] }
browse http://localhost:8081/index.android.bundle, thanks
I follow the google steps (https://facebook.github.io/react-native/docs/embedded-app-android.html),but I always meet this problem (I open the server and set the Ip:8081), can you help me to deal with it ?
我能打开你的demo,但是我怎么设置我自己的项目呢?那几个.xcodeproj我怎么都弄不进去,求大神帮忙解答
/Users/jafeney/Desktop/hunheDemo-master/android/app/src/main/java/com/hunhedemo/MainActivity.java:29: 错误: 方法不会覆盖或实现超类型的方法
@OverRide
^
/Users/jafeney/Desktop/hunheDemo-master/android/app/src/main/java/com/hunhedemo/MainActivity.java:38: 错误: 方法不会覆盖或实现超类型的方法
@OverRide
^
2 个错误
:app:compileDebugJavaWithJavac FAILED
感觉这个demo还可以更全面,比如js 访问native 的方法,native 访问react 的方法,因为在开发的时候会遇到各种的情况,和原来的oc 代码各种交互。越全越能推荐这个技术的应用
2016-07-27 18:18:57.208 hunheDemo[12193:416155] INFO: Reveal Server started (Protocol Version 25).
2016-07-27 18:18:59.012 hunheDemo[12193:416155] 点击了按钮...
2016-07-27 18:18:59.306 [error][tid:com.facebook.react.JavaScript] this._nativeModule.addListener is not a function. (In 'this._nativeModule.addListener(eventType)', 'this._nativeModule.addListener' is undefined)
2016-07-27 18:18:59.313 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: this._nativeModule.addListener is not a function. (In 'this._nativeModule.addListener(eventType)', 'this._nativeModule.addListener' is undefined)
2016-07-27 18:18:59.330 [error][tid:com.facebook.react.JavaScript] Requiring module "184", which threw an exception.
2016-07-27 18:18:59.331 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: Requiring module "184", which threw an exception.
2016-07-27 18:18:59.339 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: this._nativeModule.addListener is not a function. (In 'this._nativeModule.addListener(eventType)', 'this._nativeModule.addListener' is undefined)
2016-07-27 18:18:59.339 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: this._nativeModule.addListener is not a function. (In 'this._nativeModule.addListener(eventType)', 'this._nativeModule.addListener' is undefined)
2016-07-27 18:19:01.157 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module.
2016-07-27 18:19:01.158 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: this._nativeModule.addListener is not a function. (In 'this._nativeModule.addListener(eventType)', 'this._nativeModule.addListener' is undefined)
2016-07-27 18:19:01.158 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: Module AppRegistry is not a registered callable module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.