Earlier quoted context omitted.
I would love to see some discussion around this as well. I have been playing with Apache Corodova and Windows 10 SDK lately and they look very promising. Being a web developer, I found them to be easy to get started. Are there complex apps built using phonegap/swift/cordova? What are the limitations? I know Facebook tried with a 'web app' approach and reverted back to native solution. But that was years ago.
Using Cordova, you will always be behind any and all Mobile Safari WebKit et al bugs. This not a big deal when pushing layout around a webpage, but it can be crippling for app development as the app grows in complexity and you crave native-quality interactions. Mobile Safari's Webkit implementation has a staggering list of severe bugs. Developing under it can become a nightmare of hacks and backpedaling. Been working…
React Native for Android
101–110 of 248 posts
Re: React Native for Android
#102Earlier quoted context omitted.
Chrome? I could be wrong but I am pretty sure I am typing this response in Chrome on a Windows box right now, so maybe not the best example of an Android only app.
I figured we were talking in the context of Android vs. iOS.
Re: React Native for Android
#103Question for everybody doing some sort of cross platform mobile dev. How common is it to have NO experience with a platform's native libraries? In other words you didn't go from ObjC or Java to React Native/Cordova/Xamarin to try and re-use code but because you know JS or C# and weren't concerned about learning the native platform. For any that started out with no native platform knowledge did you start to dip into i…
I dabbled w/ Cordova and friends before, and did some work to wrap webapps in thin native shells earlier on, but there was always a very strict separation between the "sandboxed" webapp and the native code, if any.
Webapps can and do work just fine for CRUD applications, but right now, I'm of the opinion that if you want to really leverage the hardware APIs or the native ecosystem, you're better off learning the native platform, because you get no syntax mismatch friction on Stack Overflow etc, compared to Xamarin / React Native / Ambly / whatever
Also, this opinion might be unpopular among the js devs who like lightweight text editors (disclaimer: I'm one), but the heavy IDEs for Java/ObjC/Swift are actually immensely useful once you get familiar w/ their features. The static typing provided by those languages helps a lot in large refactors, in API discoverability/autocompletion and in reasoning about the codebase in general.
Re: React Native for Android
#104Anyone got the Android skeleton working? I'm getting a red page "unable to download JS bundle" despite having the dev server running. I'm using a 2013 Moto X on Android 5.1.
Re: React Native for Android
#105Anyone got the Android skeleton working? I'm getting a red page "unable to download JS bundle" despite having the dev server running. I'm using a 2013 Moto X on Android 5.1.
Re: React Native for Android
#106The general feeling on HN is that it is better to focus on Native development on both platforms because Cordova hybrid apps have a overall bad user experience. Is this still the case with React Native or is it becoming the most effective option?
Re: React Native for Android
#107Earlier quoted context omitted.
I believe Cordova apps being associated with a "bad user experience" is related to the amount of effort developers put into their Cordova app. I've seen some terrible Cordova apps. I've also seen a couple good ones. I've been developing a Cordova app using Ember.js and it works well in Cordova. There are a couple places in my app that need to be better optimized for Android, but overall, a non-discerning user would l…
> One trap that I've seen many apps do is to try to emulate the UI of native apps. This is one of the strengths of React Native. Don't emulate the native UI - use it, just access it via JavaScript.
Re: React Native for Android
#108Earlier quoted context omitted.
More accurately: with Cordova, you will always be behind on iOS.
Speaking as a web developer, this is sad, but true. However, what's even sadder to me is the fact this continues to be true despite the fact that, believe it or not, the web has been the platform where most of the innovation in UI development paradigms has been taking place in the past few years. And I don't just mean in terms of the sheer number of new things coming out. The web community pioneered UI development pa…
As someone with lots of native UI experience, that has to occasionally support web projects, the web is just plain clunky and playing catch up with the RAD tooling we enjoy since the mid-90 on native platforms.
Re: React Native for Android
#109[1] https://facebook.github.io/react/docs/reconciliation.html
Re: React Native for Android
#110Anyone got the Android skeleton working? I'm getting a red page "unable to download JS bundle" despite having the dev server running. I'm using a 2013 Moto X on Android 5.1.
Make sure your phone can connect to your machine: check https://facebook.github.io/react-native/docs/running-on-devi...
Then I got a NPE:
[21:36:12] request:/index.android.bundle?platform=android TypeError: Cannot read property 'root' of null at /Volumes/Devdisk/Perso/ErwanReact/node_modules/react-native/packager/react-packager/src/DependencyResolver/crawlers/index.js:16:84 at tryCallOne (/Volumes/Devdisk/Perso/ErwanReact/node_modules/react-native/node_modules/promise/lib/core.js:37:12) at /Volumes/Devdisk/Perso/ErwanReact/node_modules/react-native/node_modules/promise/lib/core.js:103:15 at flush (/Volumes/Devdisk/Perso/ErwanReact/node_modules/react-native/node_modules/promise/node_modules/asap/raw.js:50:29) at doNTCallback0 (node.js:408:9) at process._tickCallback (node.js:337:13)
I was able to fix it by replacing this line:
https://github.com/facebook/react-native/blob/master/package...
By this:
return fileWatcher.getWatchers().then(([watcher]) => !!(watcher.watchProjectInfo && watcher.watchProjectInfo.root));