@allow-large-files Flow v0.54.0
Reviewed By: leebyron Differential Revision: D5773490 fbshipit-source-id: 2c54bb6326f23edbe9a969f3010f79da8189923e
This commit is contained in:
parent
25639176ff
commit
91b6b4efb9
|
@ -46,12 +46,12 @@ suppress_type=$FlowFixMeProps
|
||||||
suppress_type=$FlowFixMeState
|
suppress_type=$FlowFixMeState
|
||||||
suppress_type=$FixMe
|
suppress_type=$FixMe
|
||||||
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-4]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-4]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||||
|
|
||||||
unsafe.enable_getters_and_setters=true
|
unsafe.enable_getters_and_setters=true
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.53.0
|
^0.54.0
|
||||||
|
|
|
@ -189,7 +189,11 @@ class AsyncStorageTest extends React.Component<{}, $FlowFixMeState> {
|
||||||
return (
|
return (
|
||||||
<View style={{backgroundColor: 'white', padding: 40}}>
|
<View style={{backgroundColor: 'white', padding: 40}}>
|
||||||
<Text>
|
<Text>
|
||||||
{this.constructor.displayName + ': '}
|
{
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This
|
||||||
|
* comment suppresses an error found when Flow v0.54 was deployed.
|
||||||
|
* To see the error delete this comment and run Flow. */
|
||||||
|
this.constructor.displayName + ': '}
|
||||||
{this.state.done ? 'Done' : 'Testing...'}
|
{this.state.done ? 'Done' : 'Testing...'}
|
||||||
{'\n\n' + this.state.messages}
|
{'\n\n' + this.state.messages}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var requestAnimationFrame = require('fbjs/lib/requestAnimationFrame');
|
var requestAnimationFrame = require('fbjs/lib/requestAnimationFrame');
|
||||||
var React = require('react');
|
var React = require('react');
|
||||||
var PropTypes = require('prop-types');
|
var PropTypes = require('prop-types');
|
||||||
|
@ -60,7 +63,11 @@ class IntegrationTestHarnessTest extends React.Component<{
|
||||||
return (
|
return (
|
||||||
<View style={{backgroundColor: 'white', padding: 40}}>
|
<View style={{backgroundColor: 'white', padding: 40}}>
|
||||||
<Text>
|
<Text>
|
||||||
{this.constructor.displayName + ': '}
|
{
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This
|
||||||
|
* comment suppresses an error found when Flow v0.54 was deployed.
|
||||||
|
* To see the error delete this comment and run Flow. */
|
||||||
|
this.constructor.displayName + ': '}
|
||||||
{this.state.done ? 'Done' : 'Testing...'}
|
{this.state.done ? 'Done' : 'Testing...'}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|
|
@ -40,6 +40,9 @@ var TESTS = [
|
||||||
];
|
];
|
||||||
|
|
||||||
TESTS.forEach(
|
TESTS.forEach(
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This comment
|
||||||
|
* suppresses an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
(test) => AppRegistry.registerComponent(test.displayName, () => test)
|
(test) => AppRegistry.registerComponent(test.displayName, () => test)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
|
|
||||||
var React = require('react');
|
var React = require('react');
|
||||||
var ReactNative = require('react-native');
|
var ReactNative = require('react-native');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var requestAnimationFrame = require('fbjs/lib/requestAnimationFrame');
|
var requestAnimationFrame = require('fbjs/lib/requestAnimationFrame');
|
||||||
|
|
||||||
var {
|
var {
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
var React = require('react');
|
var React = require('react');
|
||||||
var createReactClass = require('create-react-class');
|
var createReactClass = require('create-react-class');
|
||||||
var ReactNative = require('react-native');
|
var ReactNative = require('react-native');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var TimerMixin = require('react-timer-mixin');
|
var TimerMixin = require('react-timer-mixin');
|
||||||
|
|
||||||
var {
|
var {
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
|
|
||||||
/* eslint-env node */
|
/* eslint-env node */
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const WebSocket = require('ws');
|
const WebSocket = require('ws');
|
||||||
|
|
||||||
console.log(`\
|
console.log(`\
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const uuid = require('uuid');
|
const uuid = require('uuid');
|
||||||
|
|
||||||
const { BlobModule } = require('NativeModules');
|
const { BlobModule } = require('NativeModules');
|
||||||
|
|
|
@ -17,6 +17,9 @@ const LayoutAnimation = require('LayoutAnimation');
|
||||||
const Platform = require('Platform');
|
const Platform = require('Platform');
|
||||||
const PropTypes = require('prop-types');
|
const PropTypes = require('prop-types');
|
||||||
const React = require('React');
|
const React = require('React');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const TimerMixin = require('react-timer-mixin');
|
const TimerMixin = require('react-timer-mixin');
|
||||||
const View = require('View');
|
const View = require('View');
|
||||||
const ViewPropTypes = require('ViewPropTypes');
|
const ViewPropTypes = require('ViewPropTypes');
|
||||||
|
|
|
@ -27,6 +27,9 @@ var createReactClass = require('create-react-class');
|
||||||
var invariant = require('fbjs/lib/invariant');
|
var invariant = require('fbjs/lib/invariant');
|
||||||
var requireNativeComponent = require('requireNativeComponent');
|
var requireNativeComponent = require('requireNativeComponent');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const keyMirror = require('fbjs/lib/keyMirror');
|
const keyMirror = require('fbjs/lib/keyMirror');
|
||||||
|
|
||||||
var TRANSITIONER_REF = 'transitionerRef';
|
var TRANSITIONER_REF = 'transitionerRef';
|
||||||
|
|
|
@ -21,7 +21,13 @@ var UIManager = require('UIManager');
|
||||||
|
|
||||||
var invariant = require('fbjs/lib/invariant');
|
var invariant = require('fbjs/lib/invariant');
|
||||||
var nullthrows = require('fbjs/lib/nullthrows');
|
var nullthrows = require('fbjs/lib/nullthrows');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var performanceNow = require('fbjs/lib/performanceNow');
|
var performanceNow = require('fbjs/lib/performanceNow');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var warning = require('fbjs/lib/warning');
|
var warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
var { ScrollViewManager } = require('NativeModules');
|
var { ScrollViewManager } = require('NativeModules');
|
||||||
|
|
|
@ -33,6 +33,9 @@ const flattenStyle = require('flattenStyle');
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
const processDecelerationRate = require('processDecelerationRate');
|
const processDecelerationRate = require('processDecelerationRate');
|
||||||
const requireNativeComponent = require('requireNativeComponent');
|
const requireNativeComponent = require('requireNativeComponent');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const warning = require('fbjs/lib/warning');
|
const warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
import type {NativeMethodsMixinType} from 'ReactNativeTypes';
|
import type {NativeMethodsMixinType} from 'ReactNativeTypes';
|
||||||
|
|
|
@ -159,8 +159,14 @@ var Slider = createReactClass({
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
const {style, onValueChange, onSlidingComplete, ...props} = this.props;
|
const {style, onValueChange, onSlidingComplete, ...props} = this.props;
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This comment
|
||||||
|
* suppresses an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
props.style = [styles.slider, style];
|
props.style = [styles.slider, style];
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This comment
|
||||||
|
* suppresses an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
props.onValueChange = onValueChange && ((event: Event) => {
|
props.onValueChange = onValueChange && ((event: Event) => {
|
||||||
let userEvent = true;
|
let userEvent = true;
|
||||||
if (Platform.OS === 'android') {
|
if (Platform.OS === 'android') {
|
||||||
|
@ -171,8 +177,14 @@ var Slider = createReactClass({
|
||||||
onValueChange && userEvent && onValueChange(event.nativeEvent.value);
|
onValueChange && userEvent && onValueChange(event.nativeEvent.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This comment
|
||||||
|
* suppresses an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
props.onChange = props.onValueChange;
|
props.onChange = props.onValueChange;
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This comment
|
||||||
|
* suppresses an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
props.onSlidingComplete = onSlidingComplete && ((event: Event) => {
|
props.onSlidingComplete = onSlidingComplete && ((event: Event) => {
|
||||||
onSlidingComplete && onSlidingComplete(event.nativeEvent.value);
|
onSlidingComplete && onSlidingComplete(event.nativeEvent.value);
|
||||||
});
|
});
|
||||||
|
|
|
@ -23,14 +23,23 @@ const ReactNative = require('ReactNative');
|
||||||
const StyleSheet = require('StyleSheet');
|
const StyleSheet = require('StyleSheet');
|
||||||
const Text = require('Text');
|
const Text = require('Text');
|
||||||
const TextInputState = require('TextInputState');
|
const TextInputState = require('TextInputState');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const TimerMixin = require('react-timer-mixin');
|
const TimerMixin = require('react-timer-mixin');
|
||||||
const TouchableWithoutFeedback = require('TouchableWithoutFeedback');
|
const TouchableWithoutFeedback = require('TouchableWithoutFeedback');
|
||||||
const UIManager = require('UIManager');
|
const UIManager = require('UIManager');
|
||||||
const ViewPropTypes = require('ViewPropTypes');
|
const ViewPropTypes = require('ViewPropTypes');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const emptyFunction = require('fbjs/lib/emptyFunction');
|
const emptyFunction = require('fbjs/lib/emptyFunction');
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
const requireNativeComponent = require('requireNativeComponent');
|
const requireNativeComponent = require('requireNativeComponent');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const warning = require('fbjs/lib/warning');
|
const warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
const onlyMultiline = {
|
const onlyMultiline = {
|
||||||
|
|
|
@ -17,6 +17,9 @@ const PropTypes = require('prop-types');
|
||||||
const React = require('React');
|
const React = require('React');
|
||||||
const ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
const ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
||||||
const StyleSheet = require('StyleSheet');
|
const StyleSheet = require('StyleSheet');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const TimerMixin = require('react-timer-mixin');
|
const TimerMixin = require('react-timer-mixin');
|
||||||
const Touchable = require('Touchable');
|
const Touchable = require('Touchable');
|
||||||
const TouchableWithoutFeedback = require('TouchableWithoutFeedback');
|
const TouchableWithoutFeedback = require('TouchableWithoutFeedback');
|
||||||
|
@ -26,6 +29,9 @@ const ViewPropTypes = require('ViewPropTypes');
|
||||||
const createReactClass = require('create-react-class');
|
const createReactClass = require('create-react-class');
|
||||||
const ensureComponentIsNative = require('ensureComponentIsNative');
|
const ensureComponentIsNative = require('ensureComponentIsNative');
|
||||||
const ensurePositiveDelayProps = require('ensurePositiveDelayProps');
|
const ensurePositiveDelayProps = require('ensurePositiveDelayProps');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const keyOf = require('fbjs/lib/keyOf');
|
const keyOf = require('fbjs/lib/keyOf');
|
||||||
const merge = require('merge');
|
const merge = require('merge');
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,17 @@
|
||||||
const EdgeInsetsPropType = require('EdgeInsetsPropType');
|
const EdgeInsetsPropType = require('EdgeInsetsPropType');
|
||||||
const React = require('React');
|
const React = require('React');
|
||||||
const PropTypes = require('prop-types');
|
const PropTypes = require('prop-types');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const TimerMixin = require('react-timer-mixin');
|
const TimerMixin = require('react-timer-mixin');
|
||||||
const Touchable = require('Touchable');
|
const Touchable = require('Touchable');
|
||||||
|
|
||||||
const createReactClass = require('create-react-class');
|
const createReactClass = require('create-react-class');
|
||||||
const ensurePositiveDelayProps = require('ensurePositiveDelayProps');
|
const ensurePositiveDelayProps = require('ensurePositiveDelayProps');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const warning = require('fbjs/lib/warning');
|
const warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -16,6 +16,9 @@ var ImageStylePropTypes = require('ImageStylePropTypes');
|
||||||
var TextStylePropTypes = require('TextStylePropTypes');
|
var TextStylePropTypes = require('TextStylePropTypes');
|
||||||
var ViewStylePropTypes = require('ViewStylePropTypes');
|
var ViewStylePropTypes = require('ViewStylePropTypes');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var keyMirror = require('fbjs/lib/keyMirror');
|
var keyMirror = require('fbjs/lib/keyMirror');
|
||||||
var processColor = require('processColor');
|
var processColor = require('processColor');
|
||||||
var processTransform = require('processTransform');
|
var processTransform = require('processTransform');
|
||||||
|
|
|
@ -27,6 +27,9 @@ function parseErrorStack(e: ExtendedError): Array<StackFrame> {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
const stacktraceParser = require('stacktrace-parser');
|
const stacktraceParser = require('stacktrace-parser');
|
||||||
const stack = Array.isArray(e.stack) ? e.stack : stacktraceParser.parse(e.stack);
|
const stack = Array.isArray(e.stack) ? e.stack : stacktraceParser.parse(e.stack);
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,9 @@ if (__DEV__) {
|
||||||
const AppState = require('AppState');
|
const AppState = require('AppState');
|
||||||
const WebSocket = require('WebSocket');
|
const WebSocket = require('WebSocket');
|
||||||
const {PlatformConstants} = require('NativeModules');
|
const {PlatformConstants} = require('NativeModules');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
const reactDevTools = require('react-devtools-core');
|
const reactDevTools = require('react-devtools-core');
|
||||||
|
|
||||||
register = function (plugin: DevToolsPlugin) {
|
register = function (plugin: DevToolsPlugin) {
|
||||||
|
|
|
@ -135,6 +135,9 @@ polyfillGlobal('regeneratorRuntime', () => {
|
||||||
// The require just sets up the global, so make sure when we first
|
// The require just sets up the global, so make sure when we first
|
||||||
// invoke it the global does not exist
|
// invoke it the global does not exist
|
||||||
delete global.regeneratorRuntime;
|
delete global.regeneratorRuntime;
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
require('regenerator-runtime/runtime');
|
require('regenerator-runtime/runtime');
|
||||||
return global.regeneratorRuntime;
|
return global.regeneratorRuntime;
|
||||||
});
|
});
|
||||||
|
|
|
@ -23,6 +23,9 @@ import type {ExtendedError} from 'parseErrorStack';
|
||||||
let _performanceNow = null;
|
let _performanceNow = null;
|
||||||
function performanceNow() {
|
function performanceNow() {
|
||||||
if (!_performanceNow) {
|
if (!_performanceNow) {
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
_performanceNow = require('fbjs/lib/performanceNow');
|
_performanceNow = require('fbjs/lib/performanceNow');
|
||||||
}
|
}
|
||||||
return _performanceNow();
|
return _performanceNow();
|
||||||
|
@ -101,6 +104,9 @@ function _allocateCallback(func: Function, type: JSTimerType): number {
|
||||||
* recurring (setInterval).
|
* recurring (setInterval).
|
||||||
*/
|
*/
|
||||||
function _callTimer(timerID: number, frameTime: number, didTimeout: ?boolean) {
|
function _callTimer(timerID: number, frameTime: number, didTimeout: ?boolean) {
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
require('fbjs/lib/warning')(
|
require('fbjs/lib/warning')(
|
||||||
timerID <= GUID,
|
timerID <= GUID,
|
||||||
'Tried to call timer with ID %s but no such timer exists.',
|
'Tried to call timer with ID %s but no such timer exists.',
|
||||||
|
|
|
@ -28,6 +28,9 @@ const IncrementalPresenter = require('IncrementalPresenter');
|
||||||
|
|
||||||
const JSEventLoopWatchdog = require('JSEventLoopWatchdog');
|
const JSEventLoopWatchdog = require('JSEventLoopWatchdog');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const performanceNow = require('fbjs/lib/performanceNow');
|
const performanceNow = require('fbjs/lib/performanceNow');
|
||||||
|
|
||||||
InteractionManager.setDeadline(1000);
|
InteractionManager.setDeadline(1000);
|
||||||
|
|
|
@ -17,10 +17,16 @@ const PanResponder = require('PanResponder');
|
||||||
const React = require('React');
|
const React = require('React');
|
||||||
const PropTypes = require('prop-types');
|
const PropTypes = require('prop-types');
|
||||||
const StyleSheet = require('StyleSheet');
|
const StyleSheet = require('StyleSheet');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const TimerMixin = require('react-timer-mixin');
|
const TimerMixin = require('react-timer-mixin');
|
||||||
const View = require('View');
|
const View = require('View');
|
||||||
|
|
||||||
const createReactClass = require('create-react-class');
|
const createReactClass = require('create-react-class');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const emptyFunction = require('fbjs/lib/emptyFunction');
|
const emptyFunction = require('fbjs/lib/emptyFunction');
|
||||||
|
|
||||||
const IS_RTL = I18nManager.isRTL;
|
const IS_RTL = I18nManager.isRTL;
|
||||||
|
|
|
@ -16,6 +16,9 @@ const RCTLocationObserver = require('NativeModules').LocationObserver;
|
||||||
|
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
const logError = require('logError');
|
const logError = require('logError');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const warning = require('fbjs/lib/warning');
|
const warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
const LocationEventEmitter = new NativeEventEmitter(RCTLocationObserver);
|
const LocationEventEmitter = new NativeEventEmitter(RCTLocationObserver);
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var keyMirror = require('fbjs/lib/keyMirror');
|
var keyMirror = require('fbjs/lib/keyMirror');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -25,6 +25,9 @@ const Touchable = require('Touchable');
|
||||||
const UIManager = require('UIManager');
|
const UIManager = require('UIManager');
|
||||||
const View = require('View');
|
const View = require('View');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const emptyObject = require('fbjs/lib/emptyObject');
|
const emptyObject = require('fbjs/lib/emptyObject');
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,9 @@ const TaskQueue = require('TaskQueue');
|
||||||
|
|
||||||
const infoLog = require('infoLog');
|
const infoLog = require('infoLog');
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const keyMirror = require('fbjs/lib/keyMirror');
|
const keyMirror = require('fbjs/lib/keyMirror');
|
||||||
|
|
||||||
type Handle = number;
|
type Handle = number;
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const infoLog = require('infoLog');
|
const infoLog = require('infoLog');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const performanceNow = require('fbjs/lib/performanceNow');
|
const performanceNow = require('fbjs/lib/performanceNow');
|
||||||
|
|
||||||
type Handler = {
|
type Handler = {
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
const PropTypes = require('prop-types');
|
const PropTypes = require('prop-types');
|
||||||
const UIManager = require('UIManager');
|
const UIManager = require('UIManager');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const keyMirror = require('fbjs/lib/keyMirror');
|
const keyMirror = require('fbjs/lib/keyMirror');
|
||||||
|
|
||||||
const {checkPropTypes} = PropTypes;
|
const {checkPropTypes} = PropTypes;
|
||||||
|
|
|
@ -15,7 +15,13 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const performanceNow = require('fbjs/lib/performanceNow');
|
const performanceNow = require('fbjs/lib/performanceNow');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const warning = require('fbjs/lib/warning');
|
const warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
export type FillRateInfo = Info;
|
export type FillRateInfo = Info;
|
||||||
|
|
|
@ -21,9 +21,15 @@ var RCTScrollViewManager = require('NativeModules').ScrollViewManager;
|
||||||
var ScrollView = require('ScrollView');
|
var ScrollView = require('ScrollView');
|
||||||
var ScrollResponder = require('ScrollResponder');
|
var ScrollResponder = require('ScrollResponder');
|
||||||
var StaticRenderer = require('StaticRenderer');
|
var StaticRenderer = require('StaticRenderer');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var TimerMixin = require('react-timer-mixin');
|
var TimerMixin = require('react-timer-mixin');
|
||||||
var View = require('View');
|
var View = require('View');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var cloneReferencedElement = require('react-clone-referenced-element');
|
var cloneReferencedElement = require('react-clone-referenced-element');
|
||||||
var createReactClass = require('create-react-class');
|
var createReactClass = require('create-react-class');
|
||||||
var isEmpty = require('isEmpty');
|
var isEmpty = require('isEmpty');
|
||||||
|
@ -423,6 +429,9 @@ var ListView = createReactClass({
|
||||||
var rowIDs = allRowIDs[sectionIdx];
|
var rowIDs = allRowIDs[sectionIdx];
|
||||||
if (rowIDs.length === 0) {
|
if (rowIDs.length === 0) {
|
||||||
if (this.props.enableEmptySections === undefined) {
|
if (this.props.enableEmptySections === undefined) {
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses
|
||||||
|
* an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
var warning = require('fbjs/lib/warning');
|
var warning = require('fbjs/lib/warning');
|
||||||
warning(
|
warning(
|
||||||
false,
|
false,
|
||||||
|
@ -517,6 +526,9 @@ var ListView = createReactClass({
|
||||||
if (props.removeClippedSubviews === undefined) {
|
if (props.removeClippedSubviews === undefined) {
|
||||||
props.removeClippedSubviews = true;
|
props.removeClippedSubviews = true;
|
||||||
}
|
}
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This comment
|
||||||
|
* suppresses an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
Object.assign(props, {
|
Object.assign(props, {
|
||||||
onScroll: this._onScroll,
|
onScroll: this._onScroll,
|
||||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
|
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
|
|
||||||
var invariant = require('fbjs/lib/invariant');
|
var invariant = require('fbjs/lib/invariant');
|
||||||
var isEmpty = require('isEmpty');
|
var isEmpty = require('isEmpty');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var warning = require('fbjs/lib/warning');
|
var warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
function defaultGetRowData(
|
function defaultGetRowData(
|
||||||
|
|
|
@ -26,6 +26,9 @@ const ViewabilityHelper = require('ViewabilityHelper');
|
||||||
const flattenStyle = require('flattenStyle');
|
const flattenStyle = require('flattenStyle');
|
||||||
const infoLog = require('infoLog');
|
const infoLog = require('infoLog');
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const warning = require('fbjs/lib/warning');
|
const warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
const {computeWindowedRenderLimits} = require('VirtualizeUtils');
|
const {computeWindowedRenderLimits} = require('VirtualizeUtils');
|
||||||
|
|
|
@ -14,8 +14,14 @@
|
||||||
const EventTarget = require('event-target-shim');
|
const EventTarget = require('event-target-shim');
|
||||||
const RCTNetworking = require('RCTNetworking');
|
const RCTNetworking = require('RCTNetworking');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const base64 = require('base64-js');
|
const base64 = require('base64-js');
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const warning = require('fbjs/lib/warning');
|
const warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
type ResponseType = '' | 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
|
type ResponseType = '' | 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
|
||||||
|
|
|
@ -11,9 +11,15 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const Promise = require('fbjs/lib/Promise.native');
|
const Promise = require('fbjs/lib/Promise.native');
|
||||||
|
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
require('promise/setimmediate/rejection-tracking').enable({
|
require('promise/setimmediate/rejection-tracking').enable({
|
||||||
allRejections: true,
|
allRejections: true,
|
||||||
onUnhandled: (id, error = {}) => {
|
onUnhandled: (id, error = {}) => {
|
||||||
|
@ -25,6 +31,9 @@ if (__DEV__) {
|
||||||
message = Error.prototype.toString.call(error);
|
message = Error.prototype.toString.call(error);
|
||||||
stack = error.stack;
|
stack = error.stack;
|
||||||
} else {
|
} else {
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses
|
||||||
|
* an error found when Flow v0.54 was deployed. To see the error delete
|
||||||
|
* this comment and run Flow. */
|
||||||
message = require('pretty-format')(error);
|
message = require('pretty-format')(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,9 @@ const processColor = require('processColor');
|
||||||
const resolveAssetSource = require('resolveAssetSource');
|
const resolveAssetSource = require('resolveAssetSource');
|
||||||
const sizesDiffer = require('sizesDiffer');
|
const sizesDiffer = require('sizesDiffer');
|
||||||
const verifyPropTypes = require('verifyPropTypes');
|
const verifyPropTypes = require('verifyPropTypes');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const warning = require('fbjs/lib/warning');
|
const warning = require('fbjs/lib/warning');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -43,9 +43,6 @@ function verifyPropTypes(
|
||||||
|
|
||||||
if (!propTypes) {
|
if (!propTypes) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
|
|
||||||
* comment suppresses an error when upgrading Flow's support for React.
|
|
||||||
* To see the error delete this comment and run Flow. */
|
|
||||||
'`' + componentName + '` has no propTypes defined`'
|
'`' + componentName + '` has no propTypes defined`'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -57,15 +54,9 @@ function verifyPropTypes(
|
||||||
(!nativePropsToIgnore || !nativePropsToIgnore[prop])) {
|
(!nativePropsToIgnore || !nativePropsToIgnore[prop])) {
|
||||||
var message;
|
var message;
|
||||||
if (propTypes.hasOwnProperty(prop)) {
|
if (propTypes.hasOwnProperty(prop)) {
|
||||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
|
|
||||||
* comment suppresses an error when upgrading Flow's support for React.
|
|
||||||
* To see the error delete this comment and run Flow. */
|
|
||||||
message = '`' + componentName + '` has incorrectly defined propType for native prop `' +
|
message = '`' + componentName + '` has incorrectly defined propType for native prop `' +
|
||||||
viewConfig.uiViewClassName + '.' + prop + '` of native type `' + nativeProps[prop];
|
viewConfig.uiViewClassName + '.' + prop + '` of native type `' + nativeProps[prop];
|
||||||
} else {
|
} else {
|
||||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
|
|
||||||
* comment suppresses an error when upgrading Flow's support for React.
|
|
||||||
* To see the error delete this comment and run Flow. */
|
|
||||||
message = '`' + componentName + '` has no propType for native prop `' +
|
message = '`' + componentName + '` has no propType for native prop `' +
|
||||||
viewConfig.uiViewClassName + '.' + prop + '` of native type `' +
|
viewConfig.uiViewClassName + '.' + prop + '` of native type `' +
|
||||||
nativeProps[prop] + '`';
|
nativeProps[prop] + '`';
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
var React = require('react');
|
var React = require('react');
|
||||||
var createReactClass = require('create-react-class');
|
var createReactClass = require('create-react-class');
|
||||||
var ReactNative = require('react-native');
|
var ReactNative = require('react-native');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var TimerMixin = require('react-timer-mixin');
|
var TimerMixin = require('react-timer-mixin');
|
||||||
var {
|
var {
|
||||||
NativeModules,
|
NativeModules,
|
||||||
|
|
|
@ -16,6 +16,9 @@ const Systrace = require('Systrace');
|
||||||
|
|
||||||
const infoLog = require('infoLog');
|
const infoLog = require('infoLog');
|
||||||
const performanceNow =
|
const performanceNow =
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
global.nativePerformanceNow || require('fbjs/lib/performanceNow');
|
global.nativePerformanceNow || require('fbjs/lib/performanceNow');
|
||||||
|
|
||||||
type Timespan = {
|
type Timespan = {
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const base64 = require('base64-js');
|
const base64 = require('base64-js');
|
||||||
|
|
||||||
function binaryToBase64(data: ArrayBuffer | $ArrayBufferView) {
|
function binaryToBase64(data: ArrayBuffer | $ArrayBufferView) {
|
||||||
|
|
|
@ -18,6 +18,9 @@ const NativeModules = require('NativeModules');
|
||||||
const Platform = require('Platform');
|
const Platform = require('Platform');
|
||||||
const WebSocketEvent = require('WebSocketEvent');
|
const WebSocketEvent = require('WebSocketEvent');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const base64 = require('base64-js');
|
const base64 = require('base64-js');
|
||||||
const binaryToBase64 = require('binaryToBase64');
|
const binaryToBase64 = require('binaryToBase64');
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
|
@ -104,7 +107,13 @@ class WebSocket extends EventTarget(...WEBSOCKET_EVENTS) {
|
||||||
// Preserve deprecated backwards compatibility for the 'origin' option
|
// Preserve deprecated backwards compatibility for the 'origin' option
|
||||||
if (unrecognized && typeof unrecognized.origin === 'string') {
|
if (unrecognized && typeof unrecognized.origin === 'string') {
|
||||||
console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.');
|
console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This
|
||||||
|
* comment suppresses an error found when Flow v0.54 was deployed. To see
|
||||||
|
* the error delete this comment and run Flow. */
|
||||||
headers.origin = unrecognized.origin;
|
headers.origin = unrecognized.origin;
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This
|
||||||
|
* comment suppresses an error found when Flow v0.54 was deployed. To see
|
||||||
|
* the error delete this comment and run Flow. */
|
||||||
delete unrecognized.origin;
|
delete unrecognized.origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
require('Promise'); // make sure the default rejection handler is installed
|
require('Promise'); // make sure the default rejection handler is installed
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const rejectionTracking = require('promise/setimmediate/rejection-tracking');
|
const rejectionTracking = require('promise/setimmediate/rejection-tracking');
|
||||||
|
|
||||||
module.exports = () => {
|
module.exports = () => {
|
||||||
|
|
|
@ -16,6 +16,9 @@ const EventEmitterWithHolding = require('EventEmitterWithHolding');
|
||||||
const EventHolder = require('EventHolder');
|
const EventHolder = require('EventHolder');
|
||||||
|
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const keyOf = require('fbjs/lib/keyOf');
|
const keyOf = require('fbjs/lib/keyOf');
|
||||||
|
|
||||||
import type EmitterSubscription from 'EmitterSubscription';
|
import type EmitterSubscription from 'EmitterSubscription';
|
||||||
|
|
|
@ -19,6 +19,9 @@ var {
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
View,
|
View,
|
||||||
} = ReactNative;
|
} = ReactNative;
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var TimerMixin = require('react-timer-mixin');
|
var TimerMixin = require('react-timer-mixin');
|
||||||
|
|
||||||
var ProgressViewExample = createReactClass({
|
var ProgressViewExample = createReactClass({
|
||||||
|
|
|
@ -21,8 +21,14 @@ var {
|
||||||
Text,
|
Text,
|
||||||
View,
|
View,
|
||||||
} = ReactNative;
|
} = ReactNative;
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var TimerMixin = require('react-timer-mixin');
|
var TimerMixin = require('react-timer-mixin');
|
||||||
var RNTesterButton = require('./RNTesterButton');
|
var RNTesterButton = require('./RNTesterButton');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
var performanceNow = require('fbjs/lib/performanceNow');
|
var performanceNow = require('fbjs/lib/performanceNow');
|
||||||
|
|
||||||
function burnCPU(milliseconds) {
|
function burnCPU(milliseconds) {
|
||||||
|
|
|
@ -20,6 +20,9 @@ Test server for WebSocketExample
|
||||||
This will set a cookie named "wstest" on the response of any incoming request.
|
This will set a cookie named "wstest" on the response of any incoming request.
|
||||||
`);
|
`);
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const connect = require('connect');
|
const connect = require('connect');
|
||||||
const http = require('http');
|
const http = require('http');
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
|
|
||||||
/* eslint-env node */
|
/* eslint-env node */
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const WebSocket = require('ws');
|
const WebSocket = require('ws');
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
|
@ -13,8 +13,17 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const babel = require('babel-core');
|
const babel = require('babel-core');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const babelRegisterOnly = require('metro-bundler/src/babelRegisterOnly');
|
const babelRegisterOnly = require('metro-bundler/src/babelRegisterOnly');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction');
|
const createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction');
|
||||||
|
|
||||||
const nodeFiles = RegExp([
|
const nodeFiles = RegExp([
|
||||||
|
@ -25,6 +34,9 @@ const nodeOptions = babelRegisterOnly.config([nodeFiles]);
|
||||||
|
|
||||||
babelRegisterOnly([]);
|
babelRegisterOnly([]);
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const transformer = require('metro-bundler/src/transformer.js');
|
const transformer = require('metro-bundler/src/transformer.js');
|
||||||
module.exports = {
|
module.exports = {
|
||||||
process(src/*: string*/, file/*: string*/) {
|
process(src/*: string*/, file/*: string*/) {
|
||||||
|
|
|
@ -12,17 +12,35 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const log = require('../util/log').out('bundle');
|
const log = require('../util/log').out('bundle');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const Server = require('metro-bundler/src/Server');
|
const Server = require('metro-bundler/src/Server');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const Terminal = require('metro-bundler/src/lib/Terminal');
|
const Terminal = require('metro-bundler/src/lib/Terminal');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const TerminalReporter = require('metro-bundler/src/lib/TerminalReporter');
|
const TerminalReporter = require('metro-bundler/src/lib/TerminalReporter');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const TransformCaching = require('metro-bundler/src/lib/TransformCaching');
|
const TransformCaching = require('metro-bundler/src/lib/TransformCaching');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const outputBundle = require('metro-bundler/src/shared/output/bundle');
|
const outputBundle = require('metro-bundler/src/shared/output/bundle');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const saveAssets = require('./saveAssets');
|
const saveAssets = require('./saveAssets');
|
||||||
const defaultAssetExts = require('metro-bundler/src/defaults').assetExts;
|
const defaultAssetExts = require('metro-bundler/src/defaults').assetExts;
|
||||||
const defaultSourceExts = require('metro-bundler/src/defaults').sourceExts;
|
const defaultSourceExts = require('metro-bundler/src/defaults').sourceExts;
|
||||||
const defaultPlatforms = require('metro-bundler/src/defaults').platforms;
|
const defaultPlatforms = require('metro-bundler/src/defaults').platforms;
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const defaultProvidesModuleNodeModules = require('metro-bundler/src/defaults').providesModuleNodeModules;
|
const defaultProvidesModuleNodeModules = require('metro-bundler/src/defaults').providesModuleNodeModules;
|
||||||
|
|
||||||
const {ASSET_REGISTRY_PATH} = require('../core/Constants');
|
const {ASSET_REGISTRY_PATH} = require('../core/Constants');
|
||||||
|
@ -32,6 +50,9 @@ import type {ConfigT} from '../util/Config';
|
||||||
|
|
||||||
function saveBundle(output, bundle, args) {
|
function saveBundle(output, bundle, args) {
|
||||||
return Promise.resolve(
|
return Promise.resolve(
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
output.save(bundle, args, log)
|
output.save(bundle, args, log)
|
||||||
).then(() => bundle);
|
).then(() => bundle);
|
||||||
}
|
}
|
||||||
|
@ -82,8 +103,9 @@ function buildBundle(
|
||||||
? config.getProvidesModuleNodeModules()
|
? config.getProvidesModuleNodeModules()
|
||||||
: defaultProvidesModuleNodeModules;
|
: defaultProvidesModuleNodeModules;
|
||||||
|
|
||||||
/* $FlowFixMe: Flow is wrong, Node.js docs specify that process.stdout is an
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This comment
|
||||||
* instance of a net.Socket (a local socket, not network). */
|
* suppresses an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
const terminal = new Terminal(process.stdout);
|
const terminal = new Terminal(process.stdout);
|
||||||
const options = {
|
const options = {
|
||||||
assetExts: defaultAssetExts.concat(assetExts),
|
assetExts: defaultAssetExts.concat(assetExts),
|
||||||
|
|
|
@ -10,4 +10,7 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
export type {OutputOptions, RequestOptions} from 'metro-bundler/src/shared/types.flow';
|
export type {OutputOptions, RequestOptions} from 'metro-bundler/src/shared/types.flow';
|
||||||
|
|
|
@ -13,8 +13,14 @@
|
||||||
const config = require('./core');
|
const config = require('./core');
|
||||||
|
|
||||||
const assertRequiredOptions = require('./util/assertRequiredOptions');
|
const assertRequiredOptions = require('./util/assertRequiredOptions');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
const childProcess = require('child_process');
|
const childProcess = require('child_process');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const commander = require('commander');
|
const commander = require('commander');
|
||||||
const commands = require('./commands');
|
const commands = require('./commands');
|
||||||
const init = require('./init/init');
|
const init = require('./init/init');
|
||||||
|
|
|
@ -18,7 +18,13 @@ const ios = require('./ios');
|
||||||
const windows = require('./windows');
|
const windows = require('./windows');
|
||||||
const wrapCommands = require('./wrapCommands');
|
const wrapCommands = require('./wrapCommands');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const flatten = require('lodash').flatten;
|
const flatten = require('lodash').flatten;
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const minimist = require('minimist');
|
const minimist = require('minimist');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,21 @@
|
||||||
* @flow
|
* @flow
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const log = require('npmlog');
|
const log = require('npmlog');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const uniq = require('lodash').uniq;
|
const uniq = require('lodash').uniq;
|
||||||
const flatten = require('lodash').flatten;
|
const flatten = require('lodash').flatten;
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const isEmpty = require('lodash').isEmpty;
|
const isEmpty = require('lodash').isEmpty;
|
||||||
const promiseWaterfall = require('./promiseWaterfall');
|
const promiseWaterfall = require('./promiseWaterfall');
|
||||||
const registerDependencyAndroid = require('./android/registerNativeModule');
|
const registerDependencyAndroid = require('./android/registerNativeModule');
|
||||||
|
|
|
@ -13,15 +13,27 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
require('../../setupBabel')();
|
require('../../setupBabel')();
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const ReactPackager = require('metro-bundler');
|
const ReactPackager = require('metro-bundler');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const Terminal = require('metro-bundler/src/lib/Terminal');
|
const Terminal = require('metro-bundler/src/lib/Terminal');
|
||||||
|
|
||||||
const attachHMRServer = require('./util/attachHMRServer');
|
const attachHMRServer = require('./util/attachHMRServer');
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const connect = require('connect');
|
const connect = require('connect');
|
||||||
const copyToClipBoardMiddleware = require('./middleware/copyToClipBoardMiddleware');
|
const copyToClipBoardMiddleware = require('./middleware/copyToClipBoardMiddleware');
|
||||||
const defaultAssetExts = require('metro-bundler/src/defaults').assetExts;
|
const defaultAssetExts = require('metro-bundler/src/defaults').assetExts;
|
||||||
const defaultSourceExts = require('metro-bundler/src/defaults').sourceExts;
|
const defaultSourceExts = require('metro-bundler/src/defaults').sourceExts;
|
||||||
const defaultPlatforms = require('metro-bundler/src/defaults').platforms;
|
const defaultPlatforms = require('metro-bundler/src/defaults').platforms;
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const defaultProvidesModuleNodeModules = require('metro-bundler/src/defaults')
|
const defaultProvidesModuleNodeModules = require('metro-bundler/src/defaults')
|
||||||
.providesModuleNodeModules;
|
.providesModuleNodeModules;
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
@ -37,11 +49,17 @@ const statusPageMiddleware = require('./middleware/statusPageMiddleware.js');
|
||||||
const systraceProfileMiddleware = require('./middleware/systraceProfileMiddleware.js');
|
const systraceProfileMiddleware = require('./middleware/systraceProfileMiddleware.js');
|
||||||
const webSocketProxy = require('./util/webSocketProxy.js');
|
const webSocketProxy = require('./util/webSocketProxy.js');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const TransformCaching = require('metro-bundler/src/lib/TransformCaching');
|
const TransformCaching = require('metro-bundler/src/lib/TransformCaching');
|
||||||
|
|
||||||
const {ASSET_REGISTRY_PATH} = require('../core/Constants');
|
const {ASSET_REGISTRY_PATH} = require('../core/Constants');
|
||||||
|
|
||||||
import type {ConfigT} from '../util/Config';
|
import type {ConfigT} from '../util/Config';
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
import type {Reporter} from 'metro-bundler/src/lib/reporting';
|
import type {Reporter} from 'metro-bundler/src/lib/reporting';
|
||||||
|
|
||||||
export type Args = {|
|
export type Args = {|
|
||||||
|
@ -141,11 +159,15 @@ function getPackagerServer(args, config) {
|
||||||
LogReporter = require(path.resolve(args.customLogReporterPath));
|
LogReporter = require(path.resolve(args.customLogReporterPath));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
LogReporter = require('metro-bundler/src/lib/TerminalReporter');
|
LogReporter = require('metro-bundler/src/lib/TerminalReporter');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* $FlowFixMe: Flow is wrong, Node.js docs specify that process.stdout is an
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This comment
|
||||||
* instance of a net.Socket (a local socket, not network). */
|
* suppresses an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
const terminal = new Terminal(process.stdout);
|
const terminal = new Terminal(process.stdout);
|
||||||
return ReactPackager.createServer({
|
return ReactPackager.createServer({
|
||||||
assetExts: defaultAssetExts.concat(args.assetExts),
|
assetExts: defaultAssetExts.concat(args.assetExts),
|
||||||
|
|
|
@ -110,6 +110,9 @@ function attachHMRServer<TModule: Moduleish>(
|
||||||
dependenciesModulesCache: {[mixed]: TModule},
|
dependenciesModulesCache: {[mixed]: TModule},
|
||||||
shallowDependencies: {[string]: Array<string>},
|
shallowDependencies: {[string]: Array<string>},
|
||||||
inverseDependenciesCache: mixed,
|
inverseDependenciesCache: mixed,
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This comment
|
||||||
|
* suppresses an error found when Flow v0.54 was deployed. To see the error
|
||||||
|
* delete this comment and run Flow. */
|
||||||
resolutionResponse: ResolutionResponse<TModule>,
|
resolutionResponse: ResolutionResponse<TModule>,
|
||||||
}> {
|
}> {
|
||||||
const response = await packagerServer.getDependencies({
|
const response = await packagerServer.getDependencies({
|
||||||
|
@ -391,6 +394,9 @@ function attachHMRServer<TModule: Moduleish>(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
|
||||||
|
* error found when Flow v0.54 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
const WebSocketServer = require('ws').Server;
|
const WebSocketServer = require('ws').Server;
|
||||||
const wss = new WebSocketServer({
|
const wss = new WebSocketServer({
|
||||||
server: httpServer,
|
server: httpServer,
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const opn = require('opn');
|
const opn = require('opn');
|
||||||
const execSync = require('child_process').execSync;
|
const execSync = require('child_process').execSync;
|
||||||
|
|
||||||
|
|
|
@ -37,12 +37,12 @@ suppress_type=$FlowFixMeProps
|
||||||
suppress_type=$FlowFixMeState
|
suppress_type=$FlowFixMeState
|
||||||
suppress_type=$FixMe
|
suppress_type=$FixMe
|
||||||
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-4]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-4]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||||
|
|
||||||
unsafe.enable_getters_and_setters=true
|
unsafe.enable_getters_and_setters=true
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.53.0
|
^0.54.0
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const blacklist = require('metro-bundler/src/blacklist');
|
const blacklist = require('metro-bundler/src/blacklist');
|
||||||
const findSymlinksPaths = require('./findSymlinksPaths');
|
const findSymlinksPaths = require('./findSymlinksPaths');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
@ -17,6 +20,9 @@ const getPolyfills = require('../../rn-get-polyfills');
|
||||||
const invariant = require('fbjs/lib/invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
const {providesModuleNodeModules} = require('metro-bundler/src/defaults');
|
const {providesModuleNodeModules} = require('metro-bundler/src/defaults');
|
||||||
|
|
||||||
const RN_CLI_CONFIG = 'rn-cli.config.js';
|
const RN_CLI_CONFIG = 'rn-cli.config.js';
|
||||||
|
@ -26,9 +32,21 @@ import type {
|
||||||
PostMinifyProcess,
|
PostMinifyProcess,
|
||||||
PostProcessModules,
|
PostProcessModules,
|
||||||
PostProcessBundleSourcemap
|
PostProcessBundleSourcemap
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
} from 'metro-bundler/src/Bundler';
|
} from 'metro-bundler/src/Bundler';
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
import type {HasteImpl} from 'metro-bundler/src/node-haste/Module';
|
import type {HasteImpl} from 'metro-bundler/src/node-haste/Module';
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
import type {TransformVariants} from 'metro-bundler/src/ModuleGraph/types.flow';
|
import type {TransformVariants} from 'metro-bundler/src/ModuleGraph/types.flow';
|
||||||
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
|
* run Flow. */
|
||||||
import type {PostProcessModules as PostProcessModulesForBuck} from 'metro-bundler/src/ModuleGraph/types.flow.js';
|
import type {PostProcessModules as PostProcessModulesForBuck} from 'metro-bundler/src/ModuleGraph/types.flow.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -196,7 +196,7 @@
|
||||||
"eslint-plugin-flowtype": "^2.33.0",
|
"eslint-plugin-flowtype": "^2.33.0",
|
||||||
"eslint-plugin-prettier": "2.1.1",
|
"eslint-plugin-prettier": "2.1.1",
|
||||||
"eslint-plugin-react": "^7.2.1",
|
"eslint-plugin-react": "^7.2.1",
|
||||||
"flow-bin": "^0.53.0",
|
"flow-bin": "^0.54.0",
|
||||||
"jest": "^21",
|
"jest": "^21",
|
||||||
"mock-fs": "^4.4.1",
|
"mock-fs": "^4.4.1",
|
||||||
"prettier": "1.5.2",
|
"prettier": "1.5.2",
|
||||||
|
@ -205,4 +205,4 @@
|
||||||
"shelljs": "0.6.0",
|
"shelljs": "0.6.0",
|
||||||
"sinon": "^2.2.0"
|
"sinon": "^2.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue