Land suppressions for 0.142.0 release to xplat

Summary:
This change contains the suppressions for the up coming v0.142.0 Flow release.

The new suppressions are a result the following changes:
* Disallow flowing functions or inexact objects to indexed objects to improve object soundness. This can cause errors if you are passing a function or inexact objects when an indexed object is expected.
* Flow now processes imports before checking the body of a file. In some rare cases this can expose previously skipped errors due to the processing order.

Reviewed By: mroch

Differential Revision: D25820434

fbshipit-source-id: 59cc1d852ffc8cc39f0d5112ce485fb33f05c092
This commit is contained in:
Pieter Vanderwerff
2021-01-07 11:33:45 -08:00
committed by Facebook GitHub Bot
parent fa406ac2aa
commit f2052fedc2
4 changed files with 11 additions and 0 deletions
+2
View File
@@ -26,6 +26,7 @@ type NativeTextProps = $ReadOnly<{
export const NativeText: HostComponent<NativeTextProps> = (createReactNativeComponentClass(
'RCTText',
() => ({
// $FlowFixMe[incompatible-call]
validAttributes: {
...ReactNativeViewAttributes.UIView,
isHighlighted: true,
@@ -60,6 +61,7 @@ export const NativeVirtualText: HostComponent<NativeTextProps> =
UIManager.getViewManagerConfig('RCTVirtualText') == null
? NativeText
: (createReactNativeComponentClass('RCTVirtualText', () => ({
// $FlowFixMe[incompatible-call]
validAttributes: {
...ReactNativeViewAttributes.UIView,
isHighlighted: true,