mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
React sync for revisions 589c0a2...2d23a45
Reviewed By: acdlite Differential Revision: D6328351 fbshipit-source-id: 88dc0f6ec9947e4a908c21f3a3df46bca5a7fdbc
This commit is contained in:
committed by
Facebook Github Bot
parent
da047966e4
commit
c7f37074ac
@@ -1 +1 @@
|
||||
589c0a25dfa18c2090549cc6f5b626d69ea53c2a
|
||||
2d23a4563ef2bec7d90c4a7edff2657c890b4334
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
12927
Libraries/Renderer/ReactNativeRenderer-dev.js
Normal file
12927
Libraries/Renderer/ReactNativeRenderer-dev.js
Normal file
File diff suppressed because it is too large
Load Diff
5806
Libraries/Renderer/ReactNativeRenderer-prod.js
Normal file
5806
Libraries/Renderer/ReactNativeRenderer-prod.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user