@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=$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\\)*\\$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\\)*\\$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-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\\)*\\$FlowExpectedError
|
||||
|
||||
unsafe.enable_getters_and_setters=true
|
||||
|
||||
[version]
|
||||
^0.53.0
|
||||
^0.54.0
|
||||
|
|
|
@ -189,7 +189,11 @@ class AsyncStorageTest extends React.Component<{}, $FlowFixMeState> {
|
|||
return (
|
||||
<View style={{backgroundColor: 'white', padding: 40}}>
|
||||
<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...'}
|
||||
{'\n\n' + this.state.messages}
|
||||
</Text>
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
*/
|
||||
'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 React = require('react');
|
||||
var PropTypes = require('prop-types');
|
||||
|
@ -60,7 +63,11 @@ class IntegrationTestHarnessTest extends React.Component<{
|
|||
return (
|
||||
<View style={{backgroundColor: 'white', padding: 40}}>
|
||||
<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...'}
|
||||
</Text>
|
||||
</View>
|
||||
|
|
|
@ -40,6 +40,9 @@ var TESTS = [
|
|||
];
|
||||
|
||||
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)
|
||||
);
|
||||
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
|
||||
var React = require('react');
|
||||
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 {
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
var React = require('react');
|
||||
var createReactClass = require('create-react-class');
|
||||
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 {
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
|
||||
/* 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');
|
||||
|
||||
console.log(`\
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
'use strict';
|
||||
|
||||
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 { BlobModule } = require('NativeModules');
|
||||
|
|
|
@ -17,6 +17,9 @@ const LayoutAnimation = require('LayoutAnimation');
|
|||
const Platform = require('Platform');
|
||||
const PropTypes = require('prop-types');
|
||||
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 View = require('View');
|
||||
const ViewPropTypes = require('ViewPropTypes');
|
||||
|
|
|
@ -27,6 +27,9 @@ var createReactClass = require('create-react-class');
|
|||
var invariant = require('fbjs/lib/invariant');
|
||||
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');
|
||||
|
||||
var TRANSITIONER_REF = 'transitionerRef';
|
||||
|
|
|
@ -21,7 +21,13 @@ var UIManager = require('UIManager');
|
|||
|
||||
var invariant = require('fbjs/lib/invariant');
|
||||
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');
|
||||
/* $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 { ScrollViewManager } = require('NativeModules');
|
||||
|
|
|
@ -33,6 +33,9 @@ const flattenStyle = require('flattenStyle');
|
|||
const invariant = require('fbjs/lib/invariant');
|
||||
const processDecelerationRate = require('processDecelerationRate');
|
||||
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');
|
||||
|
||||
import type {NativeMethodsMixinType} from 'ReactNativeTypes';
|
||||
|
|
|
@ -159,8 +159,14 @@ var Slider = createReactClass({
|
|||
|
||||
render: function() {
|
||||
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];
|
||||
|
||||
/* $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) => {
|
||||
let userEvent = true;
|
||||
if (Platform.OS === 'android') {
|
||||
|
@ -171,8 +177,14 @@ var Slider = createReactClass({
|
|||
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;
|
||||
|
||||
/* $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) => {
|
||||
onSlidingComplete && onSlidingComplete(event.nativeEvent.value);
|
||||
});
|
||||
|
|
|
@ -23,14 +23,23 @@ const ReactNative = require('ReactNative');
|
|||
const StyleSheet = require('StyleSheet');
|
||||
const Text = require('Text');
|
||||
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 TouchableWithoutFeedback = require('TouchableWithoutFeedback');
|
||||
const UIManager = require('UIManager');
|
||||
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 invariant = require('fbjs/lib/invariant');
|
||||
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 onlyMultiline = {
|
||||
|
|
|
@ -17,6 +17,9 @@ const PropTypes = require('prop-types');
|
|||
const React = require('React');
|
||||
const ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
||||
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 Touchable = require('Touchable');
|
||||
const TouchableWithoutFeedback = require('TouchableWithoutFeedback');
|
||||
|
@ -26,6 +29,9 @@ const ViewPropTypes = require('ViewPropTypes');
|
|||
const createReactClass = require('create-react-class');
|
||||
const ensureComponentIsNative = require('ensureComponentIsNative');
|
||||
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 merge = require('merge');
|
||||
|
||||
|
|
|
@ -14,11 +14,17 @@
|
|||
const EdgeInsetsPropType = require('EdgeInsetsPropType');
|
||||
const React = require('React');
|
||||
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 Touchable = require('Touchable');
|
||||
|
||||
const createReactClass = require('create-react-class');
|
||||
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 {
|
||||
|
|
|
@ -16,6 +16,9 @@ var ImageStylePropTypes = require('ImageStylePropTypes');
|
|||
var TextStylePropTypes = require('TextStylePropTypes');
|
||||
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 processColor = require('processColor');
|
||||
var processTransform = require('processTransform');
|
||||
|
|
|
@ -27,6 +27,9 @@ function parseErrorStack(e: ExtendedError): Array<StackFrame> {
|
|||
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 stack = Array.isArray(e.stack) ? e.stack : stacktraceParser.parse(e.stack);
|
||||
|
||||
|
|
|
@ -29,6 +29,9 @@ if (__DEV__) {
|
|||
const AppState = require('AppState');
|
||||
const WebSocket = require('WebSocket');
|
||||
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');
|
||||
|
||||
register = function (plugin: DevToolsPlugin) {
|
||||
|
|
|
@ -135,6 +135,9 @@ polyfillGlobal('regeneratorRuntime', () => {
|
|||
// The require just sets up the global, so make sure when we first
|
||||
// invoke it the global does not exist
|
||||
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');
|
||||
return global.regeneratorRuntime;
|
||||
});
|
||||
|
|
|
@ -23,6 +23,9 @@ import type {ExtendedError} from 'parseErrorStack';
|
|||
let _performanceNow = null;
|
||||
function 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');
|
||||
}
|
||||
return _performanceNow();
|
||||
|
@ -101,6 +104,9 @@ function _allocateCallback(func: Function, type: JSTimerType): number {
|
|||
* recurring (setInterval).
|
||||
*/
|
||||
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')(
|
||||
timerID <= GUID,
|
||||
'Tried to call timer with ID %s but no such timer exists.',
|
||||
|
|
|
@ -28,6 +28,9 @@ const IncrementalPresenter = require('IncrementalPresenter');
|
|||
|
||||
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');
|
||||
|
||||
InteractionManager.setDeadline(1000);
|
||||
|
|
|
@ -17,10 +17,16 @@ const PanResponder = require('PanResponder');
|
|||
const React = require('React');
|
||||
const PropTypes = require('prop-types');
|
||||
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 View = require('View');
|
||||
|
||||
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 IS_RTL = I18nManager.isRTL;
|
||||
|
|
|
@ -16,6 +16,9 @@ const RCTLocationObserver = require('NativeModules').LocationObserver;
|
|||
|
||||
const invariant = require('fbjs/lib/invariant');
|
||||
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 LocationEventEmitter = new NativeEventEmitter(RCTLocationObserver);
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
*/
|
||||
'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');
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,6 +25,9 @@ const Touchable = require('Touchable');
|
|||
const UIManager = require('UIManager');
|
||||
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 invariant = require('fbjs/lib/invariant');
|
||||
|
||||
|
|
|
@ -18,6 +18,9 @@ const TaskQueue = require('TaskQueue');
|
|||
|
||||
const infoLog = require('infoLog');
|
||||
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');
|
||||
|
||||
type Handle = number;
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
'use strict';
|
||||
|
||||
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');
|
||||
|
||||
type Handler = {
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
const PropTypes = require('prop-types');
|
||||
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 {checkPropTypes} = PropTypes;
|
||||
|
|
|
@ -15,7 +15,13 @@
|
|||
|
||||
'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');
|
||||
/* $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');
|
||||
|
||||
export type FillRateInfo = Info;
|
||||
|
|
|
@ -21,9 +21,15 @@ var RCTScrollViewManager = require('NativeModules').ScrollViewManager;
|
|||
var ScrollView = require('ScrollView');
|
||||
var ScrollResponder = require('ScrollResponder');
|
||||
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 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 createReactClass = require('create-react-class');
|
||||
var isEmpty = require('isEmpty');
|
||||
|
@ -423,6 +429,9 @@ var ListView = createReactClass({
|
|||
var rowIDs = allRowIDs[sectionIdx];
|
||||
if (rowIDs.length === 0) {
|
||||
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');
|
||||
warning(
|
||||
false,
|
||||
|
@ -517,6 +526,9 @@ var ListView = createReactClass({
|
|||
if (props.removeClippedSubviews === undefined) {
|
||||
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, {
|
||||
onScroll: this._onScroll,
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
|
||||
var invariant = require('fbjs/lib/invariant');
|
||||
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');
|
||||
|
||||
function defaultGetRowData(
|
||||
|
|
|
@ -26,6 +26,9 @@ const ViewabilityHelper = require('ViewabilityHelper');
|
|||
const flattenStyle = require('flattenStyle');
|
||||
const infoLog = require('infoLog');
|
||||
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 {computeWindowedRenderLimits} = require('VirtualizeUtils');
|
||||
|
|
|
@ -14,8 +14,14 @@
|
|||
const EventTarget = require('event-target-shim');
|
||||
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 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');
|
||||
|
||||
type ResponseType = '' | 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
|
||||
|
|
|
@ -11,9 +11,15 @@
|
|||
*/
|
||||
'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');
|
||||
|
||||
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({
|
||||
allRejections: true,
|
||||
onUnhandled: (id, error = {}) => {
|
||||
|
@ -25,6 +31,9 @@ if (__DEV__) {
|
|||
message = Error.prototype.toString.call(error);
|
||||
stack = error.stack;
|
||||
} 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);
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,9 @@ const processColor = require('processColor');
|
|||
const resolveAssetSource = require('resolveAssetSource');
|
||||
const sizesDiffer = require('sizesDiffer');
|
||||
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');
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,9 +43,6 @@ function verifyPropTypes(
|
|||
|
||||
if (!propTypes) {
|
||||
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`'
|
||||
);
|
||||
}
|
||||
|
@ -57,15 +54,9 @@ function verifyPropTypes(
|
|||
(!nativePropsToIgnore || !nativePropsToIgnore[prop])) {
|
||||
var message;
|
||||
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 `' +
|
||||
viewConfig.uiViewClassName + '.' + prop + '` of native type `' + nativeProps[prop];
|
||||
} 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 `' +
|
||||
viewConfig.uiViewClassName + '.' + prop + '` of native type `' +
|
||||
nativeProps[prop] + '`';
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
var React = require('react');
|
||||
var createReactClass = require('create-react-class');
|
||||
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 {
|
||||
NativeModules,
|
||||
|
|
|
@ -16,6 +16,9 @@ const Systrace = require('Systrace');
|
|||
|
||||
const infoLog = require('infoLog');
|
||||
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');
|
||||
|
||||
type Timespan = {
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
*/
|
||||
'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');
|
||||
|
||||
function binaryToBase64(data: ArrayBuffer | $ArrayBufferView) {
|
||||
|
|
|
@ -18,6 +18,9 @@ const NativeModules = require('NativeModules');
|
|||
const Platform = require('Platform');
|
||||
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 binaryToBase64 = require('binaryToBase64');
|
||||
const invariant = require('fbjs/lib/invariant');
|
||||
|
@ -104,7 +107,13 @@ class WebSocket extends EventTarget(...WEBSOCKET_EVENTS) {
|
|||
// Preserve deprecated backwards compatibility for the 'origin' option
|
||||
if (unrecognized && typeof unrecognized.origin === 'string') {
|
||||
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;
|
||||
/* $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;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
'use strict';
|
||||
|
||||
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');
|
||||
|
||||
module.exports = () => {
|
||||
|
|
|
@ -16,6 +16,9 @@ const EventEmitterWithHolding = require('EventEmitterWithHolding');
|
|||
const EventHolder = require('EventHolder');
|
||||
|
||||
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');
|
||||
|
||||
import type EmitterSubscription from 'EmitterSubscription';
|
||||
|
|
|
@ -19,6 +19,9 @@ var {
|
|||
StyleSheet,
|
||||
View,
|
||||
} = 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 ProgressViewExample = createReactClass({
|
||||
|
|
|
@ -21,8 +21,14 @@ var {
|
|||
Text,
|
||||
View,
|
||||
} = 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 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');
|
||||
|
||||
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.
|
||||
`);
|
||||
|
||||
/* $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 http = require('http');
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
|
||||
/* 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 fs = require('fs');
|
||||
|
|
|
@ -13,8 +13,17 @@
|
|||
|
||||
'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');
|
||||
/* $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');
|
||||
/* $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 nodeFiles = RegExp([
|
||||
|
@ -25,6 +34,9 @@ const nodeOptions = babelRegisterOnly.config([nodeFiles]);
|
|||
|
||||
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');
|
||||
module.exports = {
|
||||
process(src/*: string*/, file/*: string*/) {
|
||||
|
|
|
@ -12,17 +12,35 @@
|
|||
'use strict';
|
||||
|
||||
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');
|
||||
/* $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');
|
||||
/* $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');
|
||||
/* $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');
|
||||
|
||||
/* $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 path = require('path');
|
||||
const saveAssets = require('./saveAssets');
|
||||
const defaultAssetExts = require('metro-bundler/src/defaults').assetExts;
|
||||
const defaultSourceExts = require('metro-bundler/src/defaults').sourceExts;
|
||||
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 {ASSET_REGISTRY_PATH} = require('../core/Constants');
|
||||
|
@ -32,6 +50,9 @@ import type {ConfigT} from '../util/Config';
|
|||
|
||||
function saveBundle(output, bundle, args) {
|
||||
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)
|
||||
).then(() => bundle);
|
||||
}
|
||||
|
@ -82,8 +103,9 @@ function buildBundle(
|
|||
? config.getProvidesModuleNodeModules()
|
||||
: defaultProvidesModuleNodeModules;
|
||||
|
||||
/* $FlowFixMe: Flow is wrong, Node.js docs specify that process.stdout is an
|
||||
* instance of a net.Socket (a local socket, not network). */
|
||||
/* $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. */
|
||||
const terminal = new Terminal(process.stdout);
|
||||
const options = {
|
||||
assetExts: defaultAssetExts.concat(assetExts),
|
||||
|
|
|
@ -10,4 +10,7 @@
|
|||
*/
|
||||
'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';
|
||||
|
|
|
@ -13,8 +13,14 @@
|
|||
const config = require('./core');
|
||||
|
||||
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 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 commands = require('./commands');
|
||||
const init = require('./init/init');
|
||||
|
|
|
@ -18,7 +18,13 @@ const ios = require('./ios');
|
|||
const windows = require('./windows');
|
||||
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;
|
||||
/* $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 path = require('path');
|
||||
|
||||
|
|
|
@ -9,12 +9,21 @@
|
|||
* @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 path = require('path');
|
||||
const uniq = require('lodash').uniq;
|
||||
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');
|
||||
|
||||
/* $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 promiseWaterfall = require('./promiseWaterfall');
|
||||
const registerDependencyAndroid = require('./android/registerNativeModule');
|
||||
|
|
|
@ -13,15 +13,27 @@
|
|||
'use strict';
|
||||
|
||||
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');
|
||||
/* $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 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 copyToClipBoardMiddleware = require('./middleware/copyToClipBoardMiddleware');
|
||||
const defaultAssetExts = require('metro-bundler/src/defaults').assetExts;
|
||||
const defaultSourceExts = require('metro-bundler/src/defaults').sourceExts;
|
||||
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 fs = require('fs');
|
||||
|
@ -37,11 +49,17 @@ const statusPageMiddleware = require('./middleware/statusPageMiddleware.js');
|
|||
const systraceProfileMiddleware = require('./middleware/systraceProfileMiddleware.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 {ASSET_REGISTRY_PATH} = require('../core/Constants');
|
||||
|
||||
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';
|
||||
|
||||
export type Args = {|
|
||||
|
@ -141,11 +159,15 @@ function getPackagerServer(args, config) {
|
|||
LogReporter = require(path.resolve(args.customLogReporterPath));
|
||||
}
|
||||
} 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');
|
||||
}
|
||||
|
||||
/* $FlowFixMe: Flow is wrong, Node.js docs specify that process.stdout is an
|
||||
* instance of a net.Socket (a local socket, not network). */
|
||||
/* $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. */
|
||||
const terminal = new Terminal(process.stdout);
|
||||
return ReactPackager.createServer({
|
||||
assetExts: defaultAssetExts.concat(args.assetExts),
|
||||
|
|
|
@ -110,6 +110,9 @@ function attachHMRServer<TModule: Moduleish>(
|
|||
dependenciesModulesCache: {[mixed]: TModule},
|
||||
shallowDependencies: {[string]: Array<string>},
|
||||
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>,
|
||||
}> {
|
||||
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 wss = new WebSocketServer({
|
||||
server: httpServer,
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
*/
|
||||
'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 execSync = require('child_process').execSync;
|
||||
|
||||
|
|
|
@ -37,12 +37,12 @@ suppress_type=$FlowFixMeProps
|
|||
suppress_type=$FlowFixMeState
|
||||
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\\)*\\$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\\)*\\$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-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\\)*\\$FlowExpectedError
|
||||
|
||||
unsafe.enable_getters_and_setters=true
|
||||
|
||||
[version]
|
||||
^0.53.0
|
||||
^0.54.0
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
*/
|
||||
'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 findSymlinksPaths = require('./findSymlinksPaths');
|
||||
const fs = require('fs');
|
||||
|
@ -17,6 +20,9 @@ const getPolyfills = require('../../rn-get-polyfills');
|
|||
const invariant = require('fbjs/lib/invariant');
|
||||
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 RN_CLI_CONFIG = 'rn-cli.config.js';
|
||||
|
@ -26,9 +32,21 @@ import type {
|
|||
PostMinifyProcess,
|
||||
PostProcessModules,
|
||||
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';
|
||||
/* $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';
|
||||
/* $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';
|
||||
/* $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';
|
||||
|
||||
/**
|
||||
|
|
|
@ -196,7 +196,7 @@
|
|||
"eslint-plugin-flowtype": "^2.33.0",
|
||||
"eslint-plugin-prettier": "2.1.1",
|
||||
"eslint-plugin-react": "^7.2.1",
|
||||
"flow-bin": "^0.53.0",
|
||||
"flow-bin": "^0.54.0",
|
||||
"jest": "^21",
|
||||
"mock-fs": "^4.4.1",
|
||||
"prettier": "1.5.2",
|
||||
|
|
Loading…
Reference in New Issue