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:
Tim Yung 2015-08-21 15:23:01 -07:00
parent 52abc759ff
commit af8a6a44b2
1 changed files with 6 additions and 1 deletions

View File

@ -21,6 +21,7 @@ var ReactInstanceHandles = require('ReactInstanceHandles');
var ReactNativeDefaultInjection = require('ReactNativeDefaultInjection'); var ReactNativeDefaultInjection = require('ReactNativeDefaultInjection');
var ReactNativeMount = require('ReactNativeMount'); var ReactNativeMount = require('ReactNativeMount');
var ReactPropTypes = require('ReactPropTypes'); var ReactPropTypes = require('ReactPropTypes');
var ReactUpdates = require('ReactUpdates');
var deprecated = require('deprecated'); var deprecated = require('deprecated');
var findNodeHandle = require('findNodeHandle'); var findNodeHandle = require('findNodeHandle');
@ -94,7 +95,11 @@ var ReactNative = {
render: render, render: render,
unmountComponentAtNode: ReactNativeMount.unmountComponentAtNode, 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, __spread: Object.assign,
unmountComponentAtNodeAndRemoveContainer: ReactNativeMount.unmountComponentAtNodeAndRemoveContainer, unmountComponentAtNodeAndRemoveContainer: ReactNativeMount.unmountComponentAtNodeAndRemoveContainer,