Re:Apple starts rejecting apps with “hot code push” features
by iOSGuy on Wednesday March 08, 2017 @01:40PM
(#13822480)
Well, let's be clear here. I use React Native, and it would take me about 30m to write a bridged React Native method that could execute ObjC code dynamically, including accessing all the private APIs you could want.
Re:Apple starts rejecting apps with “hot code push” features
by jameside on Wednesday March 08, 2017 @02:27PM
(#13822905)
Yeah. Objective-C is definitely really flexible. From my reading of the warning, the important thing is not to execute Objective-C dynamically or access private APIs regardless of whether you're using React Native, Cordova, a WebView, or even a bare iOS app.
Re:Apple starts rejecting apps with “hot code push” features
by t1amat on Wednesday March 08, 2017 @02:07PM
(#13822697)
It may already exist: https://github.com/wix/react-native-invoke
React Native is very much like a WebView except it calls out to one more native API (UIKit) for views and animations instead of using HTML.
What neither WebViews nor React Native do is expose the ability to dynamically call any native method at runtime. You write regular Objective-C methods that are statically analyzed by Xcode and Apple and it's no easier to call unauthorized, private APIs.
With Expo all of the native modules are safe to use and don't expose arbitrary access to native APIs. Apps made with Expo are set up to be good citizens in the React Native and Apple ecosystems.