[ReactNative] Strip prefixes from NativeModules keys

This commit is contained in:
Spencer Ahrens
2015-03-17 22:22:03 -07:00
parent 2991f583e0
commit 9086365faf
46 changed files with 75 additions and 75 deletions

View File

@@ -60,7 +60,7 @@ function setupDocumentShim() {
var sourceMapPromise;
function handleErrorWithRedBox(e) {
var RCTExceptionsManager = require('NativeModules').RCTExceptionsManager;
var RCTExceptionsManager = require('NativeModules').ExceptionsManager;
var errorToString = require('errorToString');
var loadSourceMap = require('loadSourceMap');
@@ -115,7 +115,7 @@ function setupTimers() {
}
function setupAlert() {
var { RCTAlertManager } = require('NativeModules');
var RCTAlertManager = require('NativeModules').AlertManager;
if (!GLOBAL.alert) {
GLOBAL.alert = function(text) {
var alertOpts = {