Add shim files for RN in npm package

(cherry picked from commit c29642d6ed)
This commit is contained in:
Ben Alpert
2015-12-29 12:13:26 -08:00
parent d9bf86e83a
commit d2dde00940
2 changed files with 17 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
'use strict';
// TODO: Once we remove the DOM bits from React, this shim can go away.
module.exports = require('./ReactIsomorphic');
+12
View File
@@ -0,0 +1,12 @@
'use strict';
var ReactUpdates = require('./ReactUpdates');
// TODO: In React Native, ReactTestUtils depends on ./ReactDOM (for
// renderIntoDocument, which should never be called) and Relay depends on
// react-dom (for batching). Once those are fixed, nothing in RN should import
// this module and this file can go away.
module.exports = {
unstable_batchedUpdates: ReactUpdates.batchedUpdates,
};