News for hackers. Stuff that matters.
Re:The Cost of Native Mobile App Development Is Too Damn High by htormey on Friday January 06, 2017 @12:25AM (#13334177)
I'm a long term native developer who's been doing react native contacting for the past 6 months. One big issue that you run into is if you need to do long running background tasks (network polling, bluetooth, music, etc) you basically need to write native code to handle it. Complex animations and non standard view's aren't that bad to implement.
Re:The Cost of Native Mobile App Development Is Too Damn High by rorykoehler on Friday January 06, 2017 @08:17AM (#13335993)
Just about to implement react native app with network polling. Do you have any links/tips to share re best practices?
Re:The Cost of Native Mobile App Development Is Too Damn High by htormey on Friday January 06, 2017 @11:55AM (#13337845)
If you are just doing polling when your app is in the foreground, you should not have to write any native code. All of the polling can be handled in your actions.

If you need to poll in the background when the phones screen is locked, then you will need to write native code. Writing native code to do this isn't that hard (react native docs are good), it's just annoying that you will have duplicate business logic for Android/iOS.