mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
@allow-large-files [flow] deploy flow 0.60
Reviewed By: gabelevi Differential Revision: D6466441 fbshipit-source-id: c51eeb53a2465498ad77b3865b5f8c03758d1d35
This commit is contained in:
committed by
Facebook Github Bot
parent
4ebe76d559
commit
c8e72bb8b8
@@ -474,6 +474,9 @@ var ScrollResponderMixin = {
|
||||
) {
|
||||
invariant(ScrollViewManager && ScrollViewManager.zoomToRect, 'zoomToRect is not implemented');
|
||||
if ('animated' in rect) {
|
||||
/* $FlowFixMe(>=0.60.0 site=react_native_fb) This comment suppresses an
|
||||
* error found when Flow v0.60 was deployed. To see the error delete this
|
||||
* comment and run Flow. */
|
||||
var { animated, ...rect } = rect;
|
||||
} else if (typeof animated !== 'undefined') {
|
||||
console.warn('`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead');
|
||||
|
||||
@@ -324,7 +324,6 @@ class StatusBar extends React.Component<{
|
||||
componentWillUnmount() {
|
||||
// When a StatusBar is unmounted, remove itself from the stack and update
|
||||
// the native bar with the next props.
|
||||
// $FlowFixMe found when converting React.createClass to ES6
|
||||
const index = StatusBar._propsStack.indexOf(this._stackEntry);
|
||||
StatusBar._propsStack.splice(index, 1);
|
||||
|
||||
@@ -332,7 +331,6 @@ class StatusBar extends React.Component<{
|
||||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
// $FlowFixMe found when converting React.createClass to ES6
|
||||
const index = StatusBar._propsStack.indexOf(this._stackEntry);
|
||||
this._stackEntry = createStackEntry(this.props);
|
||||
StatusBar._propsStack[index] = this._stackEntry;
|
||||
|
||||
@@ -39,9 +39,6 @@ class StyleSheetValidation {
|
||||
/* $FlowFixMe(>=0.56.0 site=react_native_oss) This comment suppresses an
|
||||
* error found when Flow v0.56 was deployed. To see the error delete this
|
||||
* comment and run Flow. */
|
||||
/* $FlowFixMe(>=0.56.0 site=react_native_fb,react_native_oss) This
|
||||
* comment suppresses an error found when Flow v0.56 was deployed. To see
|
||||
* the error delete this comment and run Flow. */
|
||||
styleError(message1, style, caller, message2);
|
||||
}
|
||||
var error = allStylePropTypes[prop](
|
||||
|
||||
Reference in New Issue
Block a user