Deploy v0.38.0

Reviewed By: jeffmo

Differential Revision: D4428858

fbshipit-source-id: 10dc69349a2b563e1fa444a8b0612e3b2d4ccd1c
This commit is contained in:
Gabe Levi
2017-01-18 11:00:00 -08:00
committed by Facebook Github Bot
parent 963e6e9d36
commit a4bfac907e
17 changed files with 77 additions and 12 deletions

View File

@@ -17,6 +17,8 @@ var DialogModuleAndroid = require('NativeModules').DialogManagerAndroid;
import type { AlertType, AlertButtonStyle } from 'AlertIOS';
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during the
* deployment of v0.38.0. To see the error, remove this comment and run flow */
type Buttons = Array<{
text?: string,
onPress?: ?Function,

View File

@@ -19,6 +19,9 @@ type ExtrapolateType = 'extend' | 'identity' | 'clamp';
export type InterpolationConfigType = {
inputRange: Array<number>,
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during the
* deployment of v0.38.0. To see the error, remove this comment and run flow
*/
outputRange: (Array<number> | Array<string>),
easing?: ((input: number) => number),
extrapolate?: ExtrapolateType,

View File

@@ -157,8 +157,14 @@ class MessageQueue {
}
}
onFail && params.push(this._callbackID);
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and
* run flow */
this._callbacks[this._callbackID++] = onFail;
onSucc && params.push(this._callbackID);
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and
* run flow */
this._callbacks[this._callbackID++] = onSucc;
}
@@ -270,7 +276,13 @@ class MessageQueue {
}
}
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
this._callbacks[cbID & ~1] = null;
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
this._callbacks[cbID | 1] = null;
// $FlowIssue(>=0.35.0) #14551610
callback.apply(null, args);

View File

@@ -112,6 +112,9 @@ const JSTimersExecution = {
if (!JSTimersExecution.errors) {
JSTimersExecution.errors = [e];
} else {
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected
* during the deployment of v0.38.0. To see the error, remove this
* comment and run flow */
JSTimersExecution.errors.push(e);
}
}

View File

@@ -259,13 +259,15 @@ function buildTransitionProps(
scenes,
} = state;
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during the
* deployment of v0.38.0. To see the error, remove this comment and run flow
*/
return {
layout,
navigationState,
position,
progress,
scenes,
// $FlowFixMe(>=0.32.0) - find can return undefined
scene: scenes.find(isSceneActive),
};
}

View File

@@ -393,6 +393,9 @@ class XMLHttpRequest extends EventTarget(...XHR_EVENTS) {
(this._subscriptions || []).forEach(sub => {
sub.remove();
});
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
this._subscriptions = [];
}
@@ -457,26 +460,44 @@ class XMLHttpRequest extends EventTarget(...XHR_EVENTS) {
!!this.onreadystatechange ||
!!this.onprogress;
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
this._subscriptions.push(RCTNetworking.addListener(
'didSendNetworkData',
(args) => this.__didUploadProgress(...args)
));
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
this._subscriptions.push(RCTNetworking.addListener(
'didReceiveNetworkResponse',
(args) => this.__didReceiveResponse(...args)
));
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
this._subscriptions.push(RCTNetworking.addListener(
'didReceiveNetworkData',
(args) => this.__didReceiveData(...args)
));
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
this._subscriptions.push(RCTNetworking.addListener(
'didReceiveNetworkIncrementalData',
(args) => this.__didReceiveIncrementalData(...args)
));
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
this._subscriptions.push(RCTNetworking.addListener(
'didReceiveNetworkDataProgress',
(args) => this.__didReceiveDataProgress(...args)
));
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
* the deployment of v0.38.0. To see the error, remove this comment and run
* flow */
this._subscriptions.push(RCTNetworking.addListener(
'didCompleteNetworkResponse',
(args) => this.__didCompleteResponse(...args)

View File

@@ -112,6 +112,9 @@ const TypeToDifferMap = {
};
function processColorArray(colors: []): [] {
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during the
* deployment of v0.38.0. To see the error, remove this comment and run flow
*/
return colors && colors.map(processColor);
}

View File

@@ -57,6 +57,8 @@ type Instance = {
// A Fiber is work on a Component that needs to be done or was done. There can
// be more than one per component.
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during the
* deployment of v0.38.0. To see the error, remove this comment and run flow */
export type Fiber = Instance & {
// The Fiber to return to after finishing processing this one.

View File

@@ -79,7 +79,6 @@ module.exports = function<T, P, I, C>(config : HostConfig<T, P, I, C>) {
item = item.sibling;
} while (item);
} else {
// $FlowFixMe: Refinement issue. If it is not a Fiber or null, it is a yield
yields.push(output);
}
}

View File

@@ -24,6 +24,9 @@ exports.createReifiedYield = function(yieldNode : ReactYield) : ReifiedYield {
yieldNode.continuation,
yieldNode.key
);
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during the
* deployment of v0.38.0. To see the error, remove this comment and run flow
*/
return {
continuation: fiber,
props: yieldNode.props,

View File

@@ -33,9 +33,6 @@ export type ReactCoroutine = {
children: any,
// This should be a more specific CoroutineHandler
handler: (props: any, yields: Array<ReifiedYield>) => ReactNodeList,
/* $FlowFixMe(>=0.31.0): Which is it? mixed? Or Object? Must match
* `ReactYield` type.
*/
props: mixed,
};
export type ReactYield = {