3 ms·
> 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 speci
by 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.