Skip to content

Commit

Permalink
[React Native] Bring back .sourceURL
Browse files Browse the repository at this point in the history
  • Loading branch information
frantic committed Sep 2, 2015
1 parent 7f65971 commit c069035
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions React/Modules/RCTSourceCode.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@ - (void)setScriptText:(NSString *)scriptText {}
}
}

- (NSDictionary *)constantsToExport
{
NSString *URL = self.bridge.bundleURL.absoluteString ?: @"";
return @{@"scriptURL": URL};
}

@end

0 comments on commit c069035

Please sign in to comment.