mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
[ReactNative] Proxy bundleURL on RCTBatchedBridge
Summary: Fixes #2126 `RCTBatchedBridge` didn't implement `bundleURL`, that was available on the public bridge interface, so it'd always be `nil`, and setting it would just be ignored.
This commit is contained in:
parent
1d852624fd
commit
f53c95c743
@ -146,6 +146,16 @@ RCT_NOT_IMPLEMENTED(-initWithBundleURL:(__unused NSURL *)bundleURL
|
||||
_parentBridge.executorClass = executorClass;
|
||||
}
|
||||
|
||||
- (NSURL *)bundleURL
|
||||
{
|
||||
return _parentBridge.bundleURL;
|
||||
}
|
||||
|
||||
- (void)setBundleURL:(NSURL *)bundleURL
|
||||
{
|
||||
_parentBridge.bundleURL = bundleURL;
|
||||
}
|
||||
|
||||
- (BOOL)isLoading
|
||||
{
|
||||
return _loading;
|
||||
|
@ -93,7 +93,7 @@ RCT_EXTERN NSString *RCTBridgeModuleNameForClass(Class bridgeModuleClass);
|
||||
/**
|
||||
* URL of the script that was loaded into the bridge.
|
||||
*/
|
||||
@property (nonatomic, copy) NSURL *bundleURL;
|
||||
@property (nonatomic, strong) NSURL *bundleURL;
|
||||
|
||||
@property (nonatomic, strong) Class executorClass;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user