diff --git a/packages/react-native/Libraries/Animated/components/AnimatedView.js b/packages/react-native/Libraries/Animated/components/AnimatedView.js index 1779b4f0e908..8f1ad2bf9a6d 100644 --- a/packages/react-native/Libraries/Animated/components/AnimatedView.js +++ b/packages/react-native/Libraries/Animated/components/AnimatedView.js @@ -8,15 +8,13 @@ * @format */ -import type {ViewProps} from '../../Components/View/ViewPropTypes'; import type {AnimatedComponentType} from '../createAnimatedComponent'; import View from '../../Components/View/View'; import createAnimatedComponent from '../createAnimatedComponent'; import * as React from 'react'; -// $FlowFixMe[incompatible-type] export default createAnimatedComponent(View) as AnimatedComponentType< - ViewProps, + Readonly>, React.ElementRef, >; diff --git a/packages/react-native/ReactNativeApi.d.ts b/packages/react-native/ReactNativeApi.d.ts index 250fdb877b78..5dd9ce4bc692 100644 --- a/packages/react-native/ReactNativeApi.d.ts +++ b/packages/react-native/ReactNativeApi.d.ts @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated SignedSource<> + * @generated SignedSource<> * * This file was generated by scripts/js-api/build-types/index.js. */ @@ -64,7 +64,12 @@ declare const $$AnimatedText: AnimatedComponentType< React.ComponentRef > declare const $$AnimatedView: AnimatedComponentType< - ViewProps, + Readonly< + React.JSX.LibraryManagedAttributes< + typeof View, + React.ComponentProps + > + >, React.ComponentRef > declare const $$flattenStyle: typeof flattenStyle_default @@ -5782,7 +5787,7 @@ export { AlertOptions, // 8a116d2a AlertType, // 5ab91217 AndroidKeyboardEvent, // e03becc8 - Animated, // 0f1a0259 + Animated, // a27bf72d AppConfig, // 35c0ca70 AppRegistry, // edec2a30 AppState, // 12012be5