[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:
Tadeu Zagallo 2015-07-28 05:58:01 -07:00
parent 1d852624fd
commit f53c95c743
2 changed files with 11 additions and 1 deletions

View File

@ -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;

View File

@ -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;