Remove seemingly unused AnimatedWeb file. (#48894)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/48894

## Motivation
In our efforts to migrate the RN codebase to modern Flow (to enable ingestion by modern Flow tooling) I stumbled upon the `AnimatedWeb.js` file, which does not seems to be imported anywhere throughout the monorepo.

Searching on GitHub for imports to this file in OSS projects returned no results.

In case this file has actual uses outside of Meta (e.g. in OSS), I'll abandon the diff 🙌

## This diff
- Removes `Libraries/Animated/AnimatedWeb.js` file

Changelog:
[General][Breaking] Removed `Libraries/Animated/AnimatedWeb.js` file.

Reviewed By: cortinico

Differential Revision: D68558237

fbshipit-source-id: 319b5e59eb83e518cd123b9f74642e90f0003a4a
This commit is contained in:
Iwo Plaza
2025-01-23 10:32:59 -08:00
committed by Facebook GitHub Bot
parent a995ecc9c6
commit ecae8a2908
2 changed files with 0 additions and 54 deletions
-44
View File
@@ -1,44 +0,0 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
'use strict';
import type {AnimatedComponentType} from './createAnimatedComponent';
import AnimatedImplementation from './AnimatedImplementation';
import React from 'react';
export default {
...AnimatedImplementation,
div: AnimatedImplementation.createAnimatedComponent<
React.PropsOf<'div'>,
mixed,
>(
/* $FlowFixMe[incompatible-call] createAnimatedComponent expects to receive
* types. Plain intrinsic components can't be typed like this */
'div',
) as AnimatedComponentType<React.PropsOf<'div'>>,
span: AnimatedImplementation.createAnimatedComponent<
React.PropsOf<'span'>,
mixed,
>(
/* $FlowFixMe[incompatible-call] createAnimatedComponent expects to receive
* types. Plain intrinsic components can't be typed like this */
'span',
) as AnimatedComponentType<React.PropsOf<'span'>>,
img: AnimatedImplementation.createAnimatedComponent<
React.PropsOf<'img'>,
mixed,
>(
/* $FlowFixMe[incompatible-call] createAnimatedComponent expects to receive
* types. Plain intrinsic components can't be typed like this */
'img',
) as AnimatedComponentType<React.PropsOf<'img'>>,
};
@@ -279,16 +279,6 @@ exports[`public API should not change unintentionally Libraries/Animated/Animate
"
`;
exports[`public API should not change unintentionally Libraries/Animated/AnimatedWeb.js 1`] = `
"declare export default {
...AnimatedImplementation,
div: AnimatedComponentType<React.PropsOf<\\"div\\">>,
span: AnimatedComponentType<React.PropsOf<\\"span\\">>,
img: AnimatedComponentType<React.PropsOf<\\"img\\">>,
};
"
`;
exports[`public API should not change unintentionally Libraries/Animated/Easing.js 1`] = `
"declare const Easing: {
step0(n: number): number,