diff --git a/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js b/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js index 232cbc91487..2af83f4c4e5 100644 --- a/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js +++ b/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js @@ -188,6 +188,10 @@ function getProcessorForType(typeName: string): ?(nextProp: any) => any { case 'UIImage': case 'RCTImageSource': return resolveAssetSource; + case 'BoxShadowArray': + return processBoxShadow; + case 'FilterArray': + return processFilter; // Android Types case 'Color': return processColor; diff --git a/packages/react-native/React/Views/RCTViewManager.m b/packages/react-native/React/Views/RCTViewManager.m index 104859964ac..368e499e23d 100644 --- a/packages/react-native/React/Views/RCTViewManager.m +++ b/packages/react-native/React/Views/RCTViewManager.m @@ -431,18 +431,19 @@ RCT_CUSTOM_VIEW_PROPERTY(experimental_layoutConformance, NSString *, RCTView) // filtered by view configs. } -RCT_CUSTOM_VIEW_PROPERTY(filter, NSArray *, RCTView) +typedef NSArray *FilterArray; // Custom type to make the StaticViewConfigValidator Happy +RCT_CUSTOM_VIEW_PROPERTY(filter, FilterArray, RCTView) { - // Property is only to be used in the new renderer. - // It is necessary to add it here, otherwise it gets - // filtered by view configs. + // Property is only to be used in the new renderer. + // It is necessary to add it here, otherwise it gets + // filtered by view configs. } - -RCT_CUSTOM_VIEW_PROPERTY(boxShadow, NSArray *, RCTView) +typedef NSArray *BoxShadowArray; // Custom type to make the StaticViewConfigValidator Happy +RCT_CUSTOM_VIEW_PROPERTY(boxShadow, BoxShadowArray, RCTView) { - // Property is only to be used in the new renderer. - // It is necessary to add it here, otherwise it gets - // filtered by view configs. + // Property is only to be used in the new renderer. + // It is necessary to add it here, otherwise it gets + // filtered by view configs. } RCT_CUSTOM_VIEW_PROPERTY(experimental_mixBlendMode, NSString *, RCTView)