Renamed RCTDataManager to RCTNetworking

This commit is contained in:
Nick Lockwood
2015-06-18 09:41:38 -07:00
parent dc393162c3
commit 5263b23321
5 changed files with 17 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ var SourceMapConsumer = require('SourceMap').SourceMapConsumer;
var SourceMapURL = require('./source-map-url');
var RCTSourceCode = NativeModules.SourceCode;
var RCTDataManager = NativeModules.DataManager;
var RCTNetworking = NativeModules.Networking;
function loadSourceMap(): Promise {
return fetchSourceMap()
@@ -34,9 +34,9 @@ function fetchSourceMap(): Promise {
return Promise.reject(new Error('RCTSourceCode module is not available'));
}
if (!RCTDataManager) {
if (!RCTNetworking) {
// Used internally by fetch
return Promise.reject(new Error('RCTDataManager module is not available'));
return Promise.reject(new Error('RCTNetworking module is not available'));
}
return new Promise(RCTSourceCode.getScriptText)