mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
2db10e3e72
Summary: Unfortunately ReactTestUtils requires ReactDOM (for renderIntoDocument), and ReactTestUtils is required by ReactNative. This worked internally because we already shimmed ReactDOM for Relay; now we shim it externally too, at least until we figure out a better solution for this in React. public Reviewed By: vjeux Differential Revision: D2629811 fb-gh-sync-id: 94aac2c4eda39d039fdcedd88295e7afb0f5c5b2
17 lines
318 B
JavaScript
17 lines
318 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule ReactDOM
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var ReactUpdates = require('ReactUpdates');
|
|
|
|
// Temporary shim required for ReactTestUtils and Relay.
|
|
var ReactDOM = {
|
|
unstable_batchedUpdates: ReactUpdates.batchedUpdates,
|
|
};
|
|
|
|
module.exports = ReactDOM;
|