mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
[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
|
@end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user