React sync for revisions 589c0a2...2d23a45

Reviewed By: acdlite

Differential Revision: D6328351

fbshipit-source-id: 88dc0f6ec9947e4a908c21f3a3df46bca5a7fdbc
This commit is contained in:
Brian Vaughn 2017-11-15 09:05:34 -08:00 committed by Facebook Github Bot
parent da047966e4
commit c7f37074ac
9 changed files with 18747 additions and 7680 deletions

View File

@ -1 +1 @@
589c0a25dfa18c2090549cc6f5b626d69ea53c2a
2d23a4563ef2bec7d90c4a7edff2657c890b4334

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -14,9 +14,9 @@ import type {ReactNativeType} from 'ReactNativeTypes';
let ReactNative;
if (__DEV__) {
ReactNative = require('ReactNativeFiber-dev');
ReactNative = require('ReactNativeRenderer-dev');
} else {
ReactNative = require('ReactNativeFiber-prod');
ReactNative = require('ReactNativeRenderer-prod');
}
module.exports = (ReactNative: ReactNativeType);

View File

@ -4,10 +4,9 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule ReactNativeTypes
* @flow
* @providesModule ReactNativeTypes
*/
'use strict';
export type MeasureOnSuccessCallback = (
x: number,

View File

@ -4,16 +4,14 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule ReactTypes
* @flow
* @providesModule ReactTypes
*/
'use strict';
export type ReactNode =
| React$Element<any>
| ReactCoroutine
| ReactYield
| ReactCall
| ReactReturn
| ReactPortal
| ReactText
| ReactFragment;
@ -26,16 +24,16 @@ export type ReactText = string | number;
export type ReactEmpty = null | void | boolean;
export type ReactCoroutine = {
export type ReactCall = {
$$typeof: Symbol | number,
key: null | string,
children: any,
// This should be a more specific CoroutineHandler
handler: (props: any, yields: Array<mixed>) => ReactNodeList,
// This should be a more specific CallHandler
handler: (props: any, returns: Array<mixed>) => ReactNodeList,
props: any,
};
export type ReactYield = {
export type ReactReturn = {
$$typeof: Symbol | number,
value: mixed,
};

View File

@ -142,7 +142,7 @@
"react-native": "local-cli/wrong-react-native.js"
},
"peerDependencies": {
"react": "16.0.0"
"react": "16.1.1"
},
"dependencies": {
"absolute-path": "^0.0.0",
@ -211,8 +211,8 @@
"flow-bin": "^0.59.0",
"jest": "21.3.0-beta.8",
"prettier": "1.7.0",
"react": "16.0.0",
"react-test-renderer": "16.0.0",
"react": "16.1.1",
"react-test-renderer": "16.1.1",
"shelljs": "^0.7.8",
"sinon": "^2.2.0"
}