mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
ef75de97b5
commit
7211366c48
@@ -381,6 +381,7 @@ class MessageQueue {
|
||||
return (
|
||||
// $FlowFixMe[cannot-resolve-name]
|
||||
typeof DebuggerInternal !== 'undefined' &&
|
||||
// $FlowFixMe[cannot-resolve-name]
|
||||
DebuggerInternal.shouldPauseOnThrow === true
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user