diff --git a/.flowconfig b/.flowconfig index c9152a6e6..87471105d 100644 --- a/.flowconfig +++ b/.flowconfig @@ -39,11 +39,11 @@ suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FixMe -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-5]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-5]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ +suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-6]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) +suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-6]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy unsafe.enable_getters_and_setters=true [version] -^0.35.0 +^0.36.0 diff --git a/Libraries/Animated/src/AnimatedImplementation.js b/Libraries/Animated/src/AnimatedImplementation.js index b1f453fcb..fd65b6b23 100644 --- a/Libraries/Animated/src/AnimatedImplementation.js +++ b/Libraries/Animated/src/AnimatedImplementation.js @@ -1078,6 +1078,9 @@ class AnimatedInterpolation extends AnimatedWithChildren { typeof parentValue === 'number', 'Cannot interpolate an input which is not a number.' ); + /* $FlowFixMe(>=0.36.0 site=react_native_fb) Flow error detected during the + * deploy of Flow v0.36.0. To see the error, remove this comment and run + * Flow */ return this._interpolation(parentValue); } diff --git a/Libraries/Network/NetInfo.js b/Libraries/Network/NetInfo.js index 1ef0ead28..945e41f12 100644 --- a/Libraries/Network/NetInfo.js +++ b/Libraries/Network/NetInfo.js @@ -240,10 +240,12 @@ const NetInfo = { eventName: ChangeEventName, handler: Function ): void { - /* $FlowFixMe */ const listener = _isConnectedSubscriptions.get(handler); NetInfo.removeEventListener( eventName, + /* $FlowFixMe(>=0.36.0 site=react_native_fb) Flow error detected during + * the deploy of Flow v0.36.0. To see the error, remove this comment + * and run Flow */ listener ); _isConnectedSubscriptions.delete(handler); diff --git a/package.json b/package.json index e2560d59e..1fa698703 100644 --- a/package.json +++ b/package.json @@ -222,7 +222,7 @@ "eslint-plugin-babel": "^3.3.0", "eslint-plugin-flowtype": "^2.20.0", "eslint-plugin-react": "^6.4.1", - "flow-bin": "^0.35.0", + "flow-bin": "^0.36.0", "graphlib-dot": "0.6.2", "graphql": "0.8.2", "jest": "17.0.3", diff --git a/packager/react-packager/src/Bundler/BundleBase.js b/packager/react-packager/src/Bundler/BundleBase.js index a39a14f66..e53dad56f 100644 --- a/packager/react-packager/src/Bundler/BundleBase.js +++ b/packager/react-packager/src/Bundler/BundleBase.js @@ -14,6 +14,9 @@ const ModuleTransport = require('../lib/ModuleTransport'); export type FinalizeOptions = { allowUpdates?: boolean, + /* $FlowFixMe(>=0.36.0 site=react_native_fb) Flow error detected during the + * deploy of Flow v0.36.0. To see the error, remove this comment and run Flow + */ runBeforeMainModule?: Array, runMainModule?: boolean, }; diff --git a/packager/react-packager/src/node-haste/Cache/index.js b/packager/react-packager/src/node-haste/Cache/index.js index 68eaa0446..a562761cd 100644 --- a/packager/react-packager/src/node-haste/Cache/index.js +++ b/packager/react-packager/src/node-haste/Cache/index.js @@ -161,6 +161,9 @@ class Cache { const ret = (Object.create(null): Record); ret.metadata = record.metadata; ret.data = Object.create(null); + /* $FlowFixMe(>=0.36.0 site=react_native_fb) Flow error detected + * during the deploy of Flow v0.36.0. To see the error, remove this + * comment and run Flow */ fieldNames.forEach((field, index) => ret.data[field] = ref[index] );