[React Native] Bring back .sourceURL

This commit is contained in:
Alex Kotliarskyi 2015-09-02 13:51:53 -07:00
parent 7f65971761
commit c069035479
1 changed files with 6 additions and 0 deletions

View File

@ -34,4 +34,10 @@ RCT_EXPORT_METHOD(getScriptText:(RCTResponseSenderBlock)successCallback
}
}
- (NSDictionary *)constantsToExport
{
NSString *URL = self.bridge.bundleURL.absoluteString ?: @"";
return @{@"scriptURL": URL};
}
@end