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
This commit is contained in:
Mike Vitousek
2022-11-03 21:40:00 -07:00
committed by Facebook GitHub Bot
parent ef75de97b5
commit 7211366c48
4 changed files with 5 additions and 0 deletions
+1
View File
@@ -381,6 +381,7 @@ class MessageQueue {
return (
// $FlowFixMe[cannot-resolve-name]
typeof DebuggerInternal !== 'undefined' &&
// $FlowFixMe[cannot-resolve-name]
DebuggerInternal.shouldPauseOnThrow === true
);
}
+2
View File
@@ -123,12 +123,14 @@ function resolveSizeInPlace(
) {
if (style[direction] !== null && typeof style[direction] === 'string') {
if (style[direction].indexOf('%') !== -1) {
// $FlowFixMe[prop-missing]
style[direction] =
(parseFloat(style[direction]) / 100.0) *
Dimensions.get('window')[dimension];
}
if (style[direction] === 'auto') {
// Ignore auto sizing in frame drawing due to complexity of correctly rendering this
// $FlowFixMe[prop-missing]
style[direction] = 0;
}
}
@@ -416,6 +416,7 @@ class VirtualizedSectionList<
if (updateHighlightFn != null) {
this._updateHighlightMap[cellKey] = updateHighlightFn;
} else {
// $FlowFixMe[prop-missing]
delete this._updateHighlightFor[cellKey];
}
};
@@ -339,6 +339,7 @@ if (ReactNativeFeatureFlags.shouldEmitW3CPointerEvents()) {
const Modules: {...} = {};
APIs.concat(Components).forEach(Example => {
// $FlowFixMe[prop-missing]
Modules[Example.key] = Example.module;
});