diff --git a/packages/react-native/Libraries/Animated/components/AnimatedScrollView.js b/packages/react-native/Libraries/Animated/components/AnimatedScrollView.js index f5375653125367..cd87f75be3854f 100644 --- a/packages/react-native/Libraries/Animated/components/AnimatedScrollView.js +++ b/packages/react-native/Libraries/Animated/components/AnimatedScrollView.js @@ -46,6 +46,7 @@ const AnimatedScrollView: AnimatedComponentType = props.style != null ) { return ( + // $FlowFixMe[prop-missing] = $ObjMap< - Props & - $ReadOnly<{ - passthroughAnimatedPropExplicitValues?: React.ElementConfig, - }>, - () => any, ->; +export type AnimatedProps = { + // eslint-disable-next-line no-unused-vars + +[_K in keyof (Props & + $ReadOnly<{ + passthroughAnimatedPropExplicitValues?: React.ElementConfig< + typeof View, + >, + }>)]: any, +}; export type AnimatedComponentType< Props: {...}, diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index 1c51017ab8a4ac..5eb59f565101e2 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -712,13 +712,14 @@ exports[`public API should not change unintentionally Libraries/Animated/compone `; exports[`public API should not change unintentionally Libraries/Animated/createAnimatedComponent.js 1`] = ` -"export type AnimatedProps = $ObjMap< - Props & - $ReadOnly<{ - passthroughAnimatedPropExplicitValues?: React.ElementConfig, - }>, - () => any, ->; +"export type AnimatedProps = { + +[_K in keyof (Props & + $ReadOnly<{ + passthroughAnimatedPropExplicitValues?: React.ElementConfig< + typeof View, + >, + }>)]: any, +}; export type AnimatedComponentType< Props: { ... }, +Instance = mixed,