Skip to content

Commit c069035

Browse files
committed
[React Native] Bring back .sourceURL
1 parent 7f65971 commit c069035

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

React/Modules/RCTSourceCode.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,10 @@ - (void)setScriptText:(NSString *)scriptText {}
3434
}
3535
}
3636

37+
- (NSDictionary *)constantsToExport
38+
{
39+
NSString *URL = self.bridge.bundleURL.absoluteString ?: @"";
40+
return @{@"scriptURL": URL};
41+
}
42+
3743
@end

0 commit comments

Comments
 (0)