diff --git a/.flowconfig b/.flowconfig index 54ee8b34a..a5a80524a 100644 --- a/.flowconfig +++ b/.flowconfig @@ -35,13 +35,15 @@ Examples/UIExplorer/ImageMocks.js [options] module.system=haste +munge_underscores=true + suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FixMe -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+ +suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-4]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) +suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-4]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy [version] -0.13.1 +0.14.0 diff --git a/Examples/SampleApp/_flowconfig b/Examples/SampleApp/_flowconfig index 6b2442325..438e495d4 100644 --- a/Examples/SampleApp/_flowconfig +++ b/Examples/SampleApp/_flowconfig @@ -32,13 +32,15 @@ node_modules/react-native/Libraries/react-native/react-native-interface.js [options] module.system=haste +munge_underscores=true + suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FixMe -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-3]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+ +suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-4]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) +suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-4]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy [version] -0.13.1 +0.14.0 diff --git a/Examples/UIExplorer/AnimationExample/AnExApp.js b/Examples/UIExplorer/AnimationExample/AnExApp.js index 9ea48f419..d713b5f66 100644 --- a/Examples/UIExplorer/AnimationExample/AnExApp.js +++ b/Examples/UIExplorer/AnimationExample/AnExApp.js @@ -38,9 +38,11 @@ class Circle extends React.Component { super(); this._onLongPress = this._onLongPress.bind(this); this._toggleIsActive = this._toggleIsActive.bind(this); - this.state = {isActive: false}; - this.state.pan = new Animated.ValueXY(); // Vectors reduce boilerplate. (step1: uncomment) - this.state.pop = new Animated.Value(0); // Initial value. (step2a: uncomment) + this.state = { + isActive: false, + pan: new Animated.ValueXY(), // Vectors reduce boilerplate. (step1: uncomment) + pop: new Animated.Value(0), // Initial value. (step2a: uncomment) + }; } _onLongPress(): void { diff --git a/Libraries/ReactNative/ReactNative.js b/Libraries/ReactNative/ReactNative.js index b1be8d682..a57bc3b0d 100644 --- a/Libraries/ReactNative/ReactNative.js +++ b/Libraries/ReactNative/ReactNative.js @@ -52,7 +52,7 @@ var resolveDefaultProps = function(element) { }; // Experimental optimized element creation -var augmentElement = function(element: ReactElement) { +var augmentElement = function(element: ReactElement): ReactElement { if (__DEV__) { invariant( false,