mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add shim files for RN in npm package
(cherry picked from commit c29642d6ed)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
// TODO: Once we remove the DOM bits from React, this shim can go away.
|
||||
|
||||
module.exports = require('./ReactIsomorphic');
|
||||
@@ -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,
|
||||
};
|
||||
Reference in New Issue
Block a user