diff --git a/packages/react/lib/React.native.js b/packages/react/lib/React.native.js new file mode 100644 index 0000000000000..36bf5a46557e7 --- /dev/null +++ b/packages/react/lib/React.native.js @@ -0,0 +1,5 @@ +'use strict'; + +// TODO: Once we remove the DOM bits from React, this shim can go away. + +module.exports = require('./ReactIsomorphic'); diff --git a/packages/react/lib/ReactDOM.native.js b/packages/react/lib/ReactDOM.native.js new file mode 100644 index 0000000000000..bdd9044a8b1c7 --- /dev/null +++ b/packages/react/lib/ReactDOM.native.js @@ -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, +};