RN: Expose React.unstable_batchedUpdates
Summary: Per @spicyj in facebook/relay#127, this exposes `unstable_batchedUpdates` in React Native the same way it is exposed in `ReactDOM`.
This commit is contained in:
parent
52abc759ff
commit
af8a6a44b2
|
@ -21,6 +21,7 @@ var ReactInstanceHandles = require('ReactInstanceHandles');
|
|||
var ReactNativeDefaultInjection = require('ReactNativeDefaultInjection');
|
||||
var ReactNativeMount = require('ReactNativeMount');
|
||||
var ReactPropTypes = require('ReactPropTypes');
|
||||
var ReactUpdates = require('ReactUpdates');
|
||||
|
||||
var deprecated = require('deprecated');
|
||||
var findNodeHandle = require('findNodeHandle');
|
||||
|
@ -94,7 +95,11 @@ var ReactNative = {
|
|||
render: render,
|
||||
unmountComponentAtNode: ReactNativeMount.unmountComponentAtNode,
|
||||
|
||||
// Hook for JSX spread, don't use this for anything else.
|
||||
/* eslint-disable camelcase */
|
||||
unstable_batchedUpdates: ReactUpdates.batchedUpdates,
|
||||
/* eslint-enable camelcase */
|
||||
|
||||
// Hook for JSX spread, don't use this for anything else.
|
||||
__spread: Object.assign,
|
||||
|
||||
unmountComponentAtNodeAndRemoveContainer: ReactNativeMount.unmountComponentAtNodeAndRemoveContainer,
|
||||
|
|
Loading…
Reference in New Issue