Skip to content

Commit

Permalink
Add shim files for RN in npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits committed Dec 29, 2015
1 parent 713401f commit c29642d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react/lib/React.native.js
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions packages/react/lib/ReactDOM.native.js
Original file line number Diff line number Diff line change
@@ -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,
};

0 comments on commit c29642d

Please sign in to comment.