3 ms·
Is it not true that a cross platform system necessarily results in an application that is the lowest common denominator in terms of devices? How does React Nati
by briandear 9y ago
Is it not true that a cross platform system necessarily results in an application that is the lowest common denominator in terms of devices? How does React Native work with ARKit for example? How does React Native take full advantage of the hardware if it has to be cross-platform compatible?
The Facebook iOS app is slow, bloated and occasionally glitchy. A company like Facebook seriously doesn’t have the resources to make Android or iOS native applications? Because React isn’t “native.”
- oakesm9 9y agoI believe the majority of the main Facebook app is still "real" native code. It's certainly possible to use any native API you like when using React Native. You can easily write a modules to bridge to native APIs, but you need to be comfortable to drop into native code when required and do that work for both android and iOS. If you don't feel able to do that, you'll be limited to the libraries that others have already written. It's not hard to do though.
- rimliu 9y agoWith reagard to Facebook app I guess the problem is that they have too many resources, i.e. gazillion of people working on different parts without even checking what others are doing so you get a bunch of duplicated, triplicated, whatever, code, a bunch of dead code and stuff like that. They also use some kind of generators and run into problems like having too many classes for Xcode to handle. From everything I've heard of it you don't want to do things the way FB does them with their app.
- crispinb 9y ago> How does React Native take full advantage of the hardware if it has to be cross-platform compatible? It's easy enough to add a native module to address specific hardware -- so easy in fact that you can usually find one already done (ARKit for example: https://www.npmjs.com/package/react-native-arkit https://www.npmjs.com/package/react-native-arkit). As with all 3rd party library use you have to do your due diligence of course. The more of these you use, the less 'cross-platform' your code becomes. If there's enough similarity in hardware between platforms, you might write (or find) a react-native library offering a javascript/RN API that addresses native apis under the hood. This is done with animation, for example. > A company like Facebook seriously doesn’t have the resources to make Android or iOS native applications? I'm can't imaging they don't have the resources, and know nothing about FB or its motives. But if I was managing a large cross-platform app, I'd definitely want the largest number of developers I possibly could have communicating via a commonly understood codebase, rather than via meetings and specs.
- deleted 9y ago[deleted]