Skip to content

Commit c29642d

Browse files
committed
Add shim files for RN in npm package
1 parent 713401f commit c29642d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

packages/react/lib/React.native.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
// TODO: Once we remove the DOM bits from React, this shim can go away.
4+
5+
module.exports = require('./ReactIsomorphic');
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
3+
var ReactUpdates = require('./ReactUpdates');
4+
5+
// TODO: In React Native, ReactTestUtils depends on ./ReactDOM (for
6+
// renderIntoDocument, which should never be called) and Relay depends on
7+
// react-dom (for batching). Once those are fixed, nothing in RN should import
8+
// this module and this file can go away.
9+
10+
module.exports = {
11+
unstable_batchedUpdates: ReactUpdates.batchedUpdates,
12+
};

0 commit comments

Comments
 (0)