mirror of
https://github.com/status-im/react-native.git
synced 2025-01-12 18:44:25 +00:00
6a1f48e06d
Summary: To be able to test out new approach for NativeModules, introduce a simple runtime flag to enable the new system (doesn't exist yet). In addition, each module should declare a static `+ (BOOL)allowJSIBinding` in the objc class to be considered for the new approach. Doing so skips the processing of the module during bridge startup. Note: this doesn't do anything special for `- (NSArray *)extraModulesForBridge:(RCTBridge *)bridge` impl yet. Differential Revision: D9554296 fbshipit-source-id: 3508db6589e9f72367f62aa7ca15fce3d3adda72