mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-09 22:50:21 +08:00
[ReactNative] Add RCTBridgeDelegate
Summary: Add a new bridge delegate protocol to allow a more flexible bridge configuration. For now it just support the pre-existent configurations + providing the JavaScript source to the bridge, that should allow pre-loading sources.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "RCTJavaScriptExecutor.h"
|
||||
#import "RCTBridgeDelegate.h"
|
||||
|
||||
@class RCTBridge;
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
*/
|
||||
@interface RCTJavaScriptLoader : NSObject
|
||||
|
||||
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
- (void)loadBundleAtURL:(NSURL *)moduleURL onComplete:(void (^)(NSError *, NSString *))onComplete;
|
||||
+ (void)loadBundleAtURL:(NSURL *)moduleURL onComplete:(RCTSourceLoadBlock)onComplete;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user