mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 20:50:09 +00:00
manually remove instances of '$TEMPORARY$string<>' (#46874)
Summary: Remove instances of an unsound flow type Changelog: [internal] Pull Request resolved: https://github.com/facebook/react-native/pull/46874 Reviewed By: SamChou19815 Differential Revision: D63991776 fbshipit-source-id: 1817b1287803d22195bf521e07b3027b86562f47
This commit is contained in:
parent
7b877a4bed
commit
bed5323374
@ -66,12 +66,7 @@ function getImports(
|
||||
| 'EdgeInsetsPrimitive'
|
||||
| 'ImageSourcePrimitive'
|
||||
| 'PointPrimitive'
|
||||
| 'DimensionPrimitive'
|
||||
| $TEMPORARY$string<'ColorPrimitive'>
|
||||
| $TEMPORARY$string<'EdgeInsetsPrimitive'>
|
||||
| $TEMPORARY$string<'ImageSourcePrimitive'>
|
||||
| $TEMPORARY$string<'PointPrimitive'>
|
||||
| $TEMPORARY$string<'DimensionPrimitive'>,
|
||||
| 'DimensionPrimitive',
|
||||
) {
|
||||
switch (name) {
|
||||
case 'ColorPrimitive':
|
||||
@ -107,6 +102,7 @@ function getImports(
|
||||
const typeAnnotation = prop.typeAnnotation;
|
||||
|
||||
if (typeAnnotation.type === 'ReservedPropTypeAnnotation') {
|
||||
// $FlowFixMe[incompatible-call]
|
||||
addImportsForNativeName(typeAnnotation.name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user