Skip to content

Commit

Permalink
Suppressions for 0.111
Browse files Browse the repository at this point in the history
Summary:
still some generated files in www that need to land before we can release 0.111 here.

drop-conflicts

Changelog: [Internal]

(Note: this ignores all push blocking failures!)

Reviewed By: dsainati1

Differential Revision: D18278838

fbshipit-source-id: b20c3fefb3aab7c5fb614b33d846c7548184f49a
  • Loading branch information
jbrown215 authored and facebook-github-bot committed Nov 6, 2019
1 parent 5ee365f commit 93e58b2
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Libraries/Animated/src/AnimatedImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ const spring = function(

_startNativeLoop: function(iterations?: number): void {
const singleConfig = {...config, iterations};
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.111 was deployed. To see the error,
* delete this comment and run Flow. */
start(value, singleConfig);
},

Expand Down Expand Up @@ -223,6 +226,9 @@ const timing = function(

_startNativeLoop: function(iterations?: number): void {
const singleConfig = {...config, iterations};
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.111 was deployed. To see the error,
* delete this comment and run Flow. */
start(value, singleConfig);
},

Expand Down Expand Up @@ -265,6 +271,9 @@ const decay = function(

_startNativeLoop: function(iterations?: number): void {
const singleConfig = {...config, iterations};
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.111 was deployed. To see the error,
* delete this comment and run Flow. */
start(value, singleConfig);
},

Expand Down
3 changes: 3 additions & 0 deletions Libraries/Components/Touchable/Touchable.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,9 @@ const Touchable = {
pointerEvents="none"
style={[
styles.debug,
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.111 was deployed. To see the error,
* delete this comment and run Flow. */
{
borderColor: hexColor.slice(0, -2) + '55', // More opaque
backgroundColor: hexColor.slice(0, -2) + '0F', // Less opaque
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ const TouchableNativeFeedbackImpl = createReactClass({
: 'nativeBackgroundAndroid';
const childProps = {
...child.props,
/* $FlowFixMe(>=0.111.0 site=react_native_android_fb) This comment
* suppresses an error found when Flow v0.111 was deployed. To see the
* error, delete this comment and run Flow. */
[drawableProp]: this.props.background,
accessible: this.props.accessible !== false,
accessibilityLabel: this.props.accessibilityLabel,
Expand Down
1 change: 0 additions & 1 deletion Libraries/Core/setUpDeveloperTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ if (__DEV__) {
'debug',
].forEach(level => {
const originalFunction = console[level];
// $FlowFixMe Overwrite console methods
console[level] = function(...args) {
HMRClient.log(level, args);
originalFunction.apply(console, args);
Expand Down
1 change: 0 additions & 1 deletion Libraries/Core/setUpReactDevTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'use strict';

if (__DEV__) {
// $FlowFixMe Module is untyped
const reactDevTools = require('react-devtools-core');
const connectToDevTools = () => {
// not when debugging in chrome
Expand Down
3 changes: 3 additions & 0 deletions Libraries/Lists/FlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,9 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
};

return {
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.111 was deployed. To see the error, delete
* this comment and run Flow. */
[virtualizedListRenderKey]: (info: RenderItemProps<ItemT>) => {
if (numColumns > 1) {
const {item, index} = info;
Expand Down
15 changes: 15 additions & 0 deletions Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,9 @@ class VirtualizedList extends React.PureComponent<Props, State> {
initBlock.offset -
(this.props.initialScrollIndex ? 0 : initBlock.length);
cells.push(
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment
* suppresses an error found when Flow v0.111 was deployed. To
* see the error, delete this comment and run Flow. */
<View key="$sticky_lead" style={{[spacerKey]: leadSpace}} />,
);
this._pushCells(
Expand All @@ -960,6 +963,9 @@ class VirtualizedList extends React.PureComponent<Props, State> {
this._getFrameMetricsApprox(first).offset -
(stickyBlock.offset + stickyBlock.length);
cells.push(
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment
* suppresses an error found when Flow v0.111 was deployed. To
* see the error, delete this comment and run Flow. */
<View key="$sticky_trail" style={{[spacerKey]: trailSpace}} />,
);
insertedStickySpacer = true;
Expand All @@ -973,6 +979,9 @@ class VirtualizedList extends React.PureComponent<Props, State> {
this._getFrameMetricsApprox(first).offset -
(initBlock.offset + initBlock.length);
cells.push(
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment
* suppresses an error found when Flow v0.111 was deployed. To see
* the error, delete this comment and run Flow. */
<View key="$lead_spacer" style={{[spacerKey]: firstSpace}} />,
);
}
Expand Down Expand Up @@ -1007,6 +1016,9 @@ class VirtualizedList extends React.PureComponent<Props, State> {
endFrame.length -
(lastFrame.offset + lastFrame.length);
cells.push(
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.111 was deployed. To see the error,
* delete this comment and run Flow. */
<View key="$tail_spacer" style={{[spacerKey]: tailSpacerLength}} />,
);
}
Expand Down Expand Up @@ -1211,6 +1223,9 @@ class VirtualizedList extends React.PureComponent<Props, State> {
invariant(
typeof props.refreshing === 'boolean',
'`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' +
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.111 was deployed. To see the error,
* delete this comment and run Flow. */
JSON.stringify(props.refreshing) +
'`',
);
Expand Down
3 changes: 3 additions & 0 deletions Libraries/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ const styles = StyleSheet.create({
position: 'absolute',
},
container: {
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.111 was deployed. To see the error, delete this
* comment and run Flow. */
[side]: 0,
top: 0,
flex: 1,
Expand Down
3 changes: 3 additions & 0 deletions Libraries/PermissionsAndroid/PermissionsAndroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ class PermissionsAndroid {
...rationale,
};
NativeDialogManagerAndroid.showAlert(
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment
* suppresses an error found when Flow v0.111 was deployed. To see
* the error, delete this comment and run Flow. */
options,
() => reject(new Error('Error showing rationale')),
() =>
Expand Down
3 changes: 3 additions & 0 deletions Libraries/ReactNative/PaperUIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ function getConstants(): Object {
}

const UIManagerJS = {
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.111 was deployed. To see the error, delete this
* comment and run Flow. */
...NativeUIManager,
getConstants(): Object {
return getConstants();
Expand Down
9 changes: 9 additions & 0 deletions Libraries/Utilities/registerGeneratedViewConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,23 @@ function registerGeneratedViewConfig(
Commands: {},
bubblingEventTypes: {
...ReactNativeViewViewConfig.bubblingEventTypes,
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.111 was deployed. To see the error, delete
* this comment and run Flow. */
...(viewConfig.bubblingEventTypes || {}),
},
directEventTypes: {
...ReactNativeViewViewConfig.directEventTypes,
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.111 was deployed. To see the error, delete
* this comment and run Flow. */
...(viewConfig.directEventTypes || {}),
},
validAttributes: {
...ReactNativeViewViewConfig.validAttributes,
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.111 was deployed. To see the error, delete
* this comment and run Flow. */
...(viewConfig.validAttributes || {}),
},
};
Expand Down
3 changes: 3 additions & 0 deletions RNTester/js/examples/FlatList/FlatListExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ class FlatListExample extends React.PureComponent<Props, State> {

return {
renderItem: undefined,
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.111 was deployed. To see the error, delete
* this comment and run Flow. */
[flatListPropKey]: ({item, separators}) => {
return (
<ItemComponent
Expand Down
6 changes: 6 additions & 0 deletions RNTester/js/examples/TurboModule/SampleTurboModuleExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ class SampleTurboModuleExample extends React.Component<{||}, State> {
_setResult(name, result) {
this.setState(({testResults}) => ({
testResults: {
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.111 was deployed. To see the error,
* delete this comment and run Flow. */
...testResults,
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.111 was deployed. To see the error,
* delete this comment and run Flow. */
[name]: {value: result, type: typeof result},
},
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ function combineSchemas(files: Array<string>): SchemaType {
const schema = FlowParser.parseFile(filename);

if (schema && schema.modules) {
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.111 was deployed. To see the error,
* delete this comment and run Flow. */
merged.modules = {...merged.modules, ...schema.modules};
}
}
Expand Down

0 comments on commit 93e58b2

Please sign in to comment.