From 5c5dda832ae1896b3df51d0b1fe5ddce2a7f9895 Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Mon, 24 Mar 2025 19:27:30 -0400 Subject: [PATCH] [flow] Replace $PropertyType with indexed access type in ReactNativeTypes Replace these deprecated types to prepare for removal of support in Flow. --- packages/react-native-renderer/src/ReactNativeTypes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native-renderer/src/ReactNativeTypes.js b/packages/react-native-renderer/src/ReactNativeTypes.js index 4fdf4ea09e0f..75f4a828c907 100644 --- a/packages/react-native-renderer/src/ReactNativeTypes.js +++ b/packages/react-native-renderer/src/ReactNativeTypes.js @@ -83,8 +83,8 @@ export type ViewConfig = $ReadOnly<{ }>; export type PartialViewConfig = $ReadOnly<{ - bubblingEventTypes?: $PropertyType, - directEventTypes?: $PropertyType, + bubblingEventTypes?: ViewConfig['bubblingEventTypes'], + directEventTypes?: ViewConfig['directEventTypes'], supportsRawText?: boolean, uiViewClassName: string, validAttributes?: PartialAttributeConfiguration,