[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
Родитель 1d852624fd
Коммит f53c95c743
2 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

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