[React Native] Bring back .sourceURL
This commit is contained in:
parent
7f65971761
commit
c069035479
|
@ -34,4 +34,10 @@ RCT_EXPORT_METHOD(getScriptText:(RCTResponseSenderBlock)successCallback
|
|||
}
|
||||
}
|
||||
|
||||
- (NSDictionary *)constantsToExport
|
||||
{
|
||||
NSString *URL = self.bridge.bundleURL.absoluteString ?: @"";
|
||||
return @{@"scriptURL": URL};
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue