Skip to content

Commit 7211366

Browse files
mvitousekfacebook-github-bot
authored andcommitted
Pre-suppress errors in xplat ahead of the v0.192 release
Summary: Adds needed suppressions ahead of the release of Flow 0.192 drop-conflicts Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D41011869 fbshipit-source-id: 3922eb4463006da5b0bec803051136e8351f68fa
1 parent ef75de9 commit 7211366

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

Libraries/BatchedBridge/MessageQueue.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ class MessageQueue {
381381
return (
382382
// $FlowFixMe[cannot-resolve-name]
383383
typeof DebuggerInternal !== 'undefined' &&
384+
// $FlowFixMe[cannot-resolve-name]
384385
DebuggerInternal.shouldPauseOnThrow === true
385386
);
386387
}

Libraries/Inspector/ElementBox.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,14 @@ function resolveSizeInPlace(
123123
) {
124124
if (style[direction] !== null && typeof style[direction] === 'string') {
125125
if (style[direction].indexOf('%') !== -1) {
126+
// $FlowFixMe[prop-missing]
126127
style[direction] =
127128
(parseFloat(style[direction]) / 100.0) *
128129
Dimensions.get('window')[dimension];
129130
}
130131
if (style[direction] === 'auto') {
131132
// Ignore auto sizing in frame drawing due to complexity of correctly rendering this
133+
// $FlowFixMe[prop-missing]
132134
style[direction] = 0;
133135
}
134136
}

Libraries/Lists/VirtualizedSectionList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ class VirtualizedSectionList<
416416
if (updateHighlightFn != null) {
417417
this._updateHighlightMap[cellKey] = updateHighlightFn;
418418
} else {
419+
// $FlowFixMe[prop-missing]
419420
delete this._updateHighlightFor[cellKey];
420421
}
421422
};

packages/rn-tester/js/utils/RNTesterList.ios.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ if (ReactNativeFeatureFlags.shouldEmitW3CPointerEvents()) {
339339
const Modules: {...} = {};
340340

341341
APIs.concat(Components).forEach(Example => {
342+
// $FlowFixMe[prop-missing]
342343
Modules[Example.key] = Example.module;
343344
});
344345

0 commit comments

Comments
 (0)