From a53ac09d9d39f38c08bb51d2c84e460f83cb502d Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Wed, 13 May 2020 16:27:43 -0700 Subject: [PATCH] Libraries/Animated -> packages/react-animated # Why Make it possible to use the universal Animated package without installing all of React Native. Popular packages like `react-native-web` and `react-spring` both vendor React Animated in order to use it while maintaining a reasonable bundle size. # How Move `Libraries/Animated` to `packages/react-animated` and make `react-native` depend on `react-animated`. --- .github/CODEOWNERS | 2 +- Libraries/Components/ScrollView/ScrollView.js | 2 +- .../ScrollView/ScrollViewStickyHeader.js | 2 +- .../Components/Touchable/TouchableOpacity.js | 4 +- .../UI/LogBoxInspectorSourceMapStatus.js | 79 +++++++++--------- Libraries/StyleSheet/StyleSheetTypes.js | 2 +- index.js | 8 +- package.json | 1 + .../react-animated}/.gitignore | 0 .../react-animated}/examples/demo.html | 0 .../react-animated}/examples/pic1.jpg | Bin .../react-animated}/examples/pic2.jpg | Bin .../react-animated}/examples/pic3.jpg | Bin .../react-animated}/examples/style.css | 0 .../react-animated}/gulpfile.js | 0 .../react-animated}/package.json | 5 +- .../react-animated}/src/Animated.js | 0 .../react-animated}/src/AnimatedEvent.js | 0 .../src/AnimatedImplementation.js | 0 .../react-animated}/src/AnimatedMock.js | 0 .../react-animated}/src/AnimatedWeb.js | 0 .../react-animated}/src/Easing.js | 0 .../src/NativeAnimatedHelper.js | 0 .../src/NativeAnimatedModule.js | 0 .../react-animated}/src/SpringConfig.js | 0 .../src/__tests__/Animated-test.js | 0 .../src/__tests__/AnimatedMock-test.js | 0 .../src/__tests__/AnimatedNative-test.js | 0 .../src/__tests__/Easing-test.js | 0 .../src/__tests__/Interpolation-test.js | 0 .../src/__tests__/TimingAnimation-test.js | 0 .../src/__tests__/bezier-test.js | 0 .../src/animations/Animation.js | 0 .../src/animations/DecayAnimation.js | 0 .../src/animations/SpringAnimation.js | 0 .../src/animations/TimingAnimation.js | 0 .../react-animated}/src/bezier.js | 0 .../src/components/AnimatedFlatList.js | 0 .../src/components/AnimatedImage.js | 0 .../src/components/AnimatedScrollView.js | 0 .../src/components/AnimatedSectionList.js | 0 .../src/components/AnimatedText.js | 0 .../src/components/AnimatedView.js | 0 .../src/createAnimatedComponent.js | 0 .../src/nodes/AnimatedAddition.js | 0 .../src/nodes/AnimatedDiffClamp.js | 0 .../src/nodes/AnimatedDivision.js | 0 .../src/nodes/AnimatedInterpolation.js | 0 .../src/nodes/AnimatedModulo.js | 0 .../src/nodes/AnimatedMultiplication.js | 0 .../react-animated}/src/nodes/AnimatedNode.js | 0 .../src/nodes/AnimatedProps.js | 0 .../src/nodes/AnimatedStyle.js | 0 .../src/nodes/AnimatedSubtraction.js | 0 .../src/nodes/AnimatedTracking.js | 0 .../src/nodes/AnimatedTransform.js | 0 .../src/nodes/AnimatedValue.js | 0 .../src/nodes/AnimatedValueXY.js | 0 .../src/nodes/AnimatedWithChildren.js | 0 .../src/polyfills/InteractionManager.js | 0 .../react-animated}/src/polyfills/Set.js | 0 .../src/polyfills/flattenStyle.js | 0 62 files changed, 56 insertions(+), 49 deletions(-) rename {Libraries/Animated/release => packages/react-animated}/.gitignore (100%) rename {Libraries/Animated => packages/react-animated}/examples/demo.html (100%) rename {Libraries/Animated => packages/react-animated}/examples/pic1.jpg (100%) rename {Libraries/Animated => packages/react-animated}/examples/pic2.jpg (100%) rename {Libraries/Animated => packages/react-animated}/examples/pic3.jpg (100%) rename {Libraries/Animated => packages/react-animated}/examples/style.css (100%) rename {Libraries/Animated/release => packages/react-animated}/gulpfile.js (100%) rename {Libraries/Animated/release => packages/react-animated}/package.json (92%) rename {Libraries/Animated => packages/react-animated}/src/Animated.js (100%) rename {Libraries/Animated => packages/react-animated}/src/AnimatedEvent.js (100%) rename {Libraries/Animated => packages/react-animated}/src/AnimatedImplementation.js (100%) rename {Libraries/Animated => packages/react-animated}/src/AnimatedMock.js (100%) rename {Libraries/Animated => packages/react-animated}/src/AnimatedWeb.js (100%) rename {Libraries/Animated => packages/react-animated}/src/Easing.js (100%) rename {Libraries/Animated => packages/react-animated}/src/NativeAnimatedHelper.js (100%) rename {Libraries/Animated => packages/react-animated}/src/NativeAnimatedModule.js (100%) rename {Libraries/Animated => packages/react-animated}/src/SpringConfig.js (100%) rename {Libraries/Animated => packages/react-animated}/src/__tests__/Animated-test.js (100%) rename {Libraries/Animated => packages/react-animated}/src/__tests__/AnimatedMock-test.js (100%) rename {Libraries/Animated => packages/react-animated}/src/__tests__/AnimatedNative-test.js (100%) rename {Libraries/Animated => packages/react-animated}/src/__tests__/Easing-test.js (100%) rename {Libraries/Animated => packages/react-animated}/src/__tests__/Interpolation-test.js (100%) rename {Libraries/Animated => packages/react-animated}/src/__tests__/TimingAnimation-test.js (100%) rename {Libraries/Animated => packages/react-animated}/src/__tests__/bezier-test.js (100%) rename {Libraries/Animated => packages/react-animated}/src/animations/Animation.js (100%) rename {Libraries/Animated => packages/react-animated}/src/animations/DecayAnimation.js (100%) rename {Libraries/Animated => packages/react-animated}/src/animations/SpringAnimation.js (100%) rename {Libraries/Animated => packages/react-animated}/src/animations/TimingAnimation.js (100%) rename {Libraries/Animated => packages/react-animated}/src/bezier.js (100%) rename {Libraries/Animated => packages/react-animated}/src/components/AnimatedFlatList.js (100%) rename {Libraries/Animated => packages/react-animated}/src/components/AnimatedImage.js (100%) rename {Libraries/Animated => packages/react-animated}/src/components/AnimatedScrollView.js (100%) rename {Libraries/Animated => packages/react-animated}/src/components/AnimatedSectionList.js (100%) rename {Libraries/Animated => packages/react-animated}/src/components/AnimatedText.js (100%) rename {Libraries/Animated => packages/react-animated}/src/components/AnimatedView.js (100%) rename {Libraries/Animated => packages/react-animated}/src/createAnimatedComponent.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedAddition.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedDiffClamp.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedDivision.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedInterpolation.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedModulo.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedMultiplication.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedNode.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedProps.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedStyle.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedSubtraction.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedTracking.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedTransform.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedValue.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedValueXY.js (100%) rename {Libraries/Animated => packages/react-animated}/src/nodes/AnimatedWithChildren.js (100%) rename {Libraries/Animated => packages/react-animated}/src/polyfills/InteractionManager.js (100%) rename {Libraries/Animated => packages/react-animated}/src/polyfills/Set.js (100%) rename {Libraries/Animated => packages/react-animated}/src/polyfills/flattenStyle.js (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 38dbd76f893b2b..3f589f395ea13b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -24,7 +24,7 @@ React/CxxBridge/* @mhorowitz # Components and APIs ReactAndroid/src/main/java/com/facebook/react/animated/* @janicduplessis -Libraries/Animated/* @janicduplessis +packages/react-animated/* @janicduplessis Libraries/NativeAnimation/* @janicduplessis Libraries/Image/* @shergin Libraries/Text/* @shergin diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 9064bb15e1a346..1f7e1c7b43e4da 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -10,7 +10,7 @@ 'use strict'; -const AnimatedImplementation = require('../../Animated/src/AnimatedImplementation'); +const AnimatedImplementation = require('react-animated/dist/AnimatedImplementation'); const Platform = require('../../Utilities/Platform'); const React = require('react'); const ReactNative = require('../../Renderer/shims/ReactNative'); diff --git a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js index 0bc51bbfaecbec..6a551209d37379 100644 --- a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +++ b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js @@ -10,7 +10,7 @@ 'use strict'; -const AnimatedImplementation = require('../../Animated/src/AnimatedImplementation'); +const AnimatedImplementation = require('react-animated/dist/AnimatedImplementation'); const React = require('react'); const StyleSheet = require('../../StyleSheet/StyleSheet'); const View = require('../View/View'); diff --git a/Libraries/Components/Touchable/TouchableOpacity.js b/Libraries/Components/Touchable/TouchableOpacity.js index ae27775ba72fd9..5b7caa47926b37 100644 --- a/Libraries/Components/Touchable/TouchableOpacity.js +++ b/Libraries/Components/Touchable/TouchableOpacity.js @@ -16,8 +16,8 @@ import Pressability, { import {PressabilityDebugView} from '../../Pressability/PressabilityDebug'; import TVTouchable from './TVTouchable'; import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback'; -import Animated from 'react-native/Libraries/Animated/src/Animated'; -import Easing from 'react-native/Libraries/Animated/src/Easing'; +import Animated from 'react-animated/dist/Animated'; +import Easing from 'react-animated/dist/Easing'; import type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet'; import flattenStyle from 'react-native/Libraries/StyleSheet/flattenStyle'; import Platform from '../../Utilities/Platform'; diff --git a/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js b/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js index 3ca8ebfcd9e105..e28687a5f5e3fc 100644 --- a/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +++ b/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js @@ -10,8 +10,8 @@ 'use strict'; -import Animated from '../../Animated/src/Animated'; -import Easing from '../../Animated/src/Easing'; +import Animated from 'react-animated/dist/Animated'; +import Easing from 'react-animated/dist/Easing'; import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; import Text from '../../Text/Text'; @@ -31,46 +31,49 @@ function LogBoxInspectorSourceMapStatus(props: Props): React.Node { rotate: null, }); - React.useEffect(() => { - if (props.status === 'PENDING') { - if (state.animation == null) { - const animated = new Animated.Value(0); - const animation = Animated.loop( - Animated.timing(animated, { - duration: 2000, - easing: Easing.linear, - toValue: 1, - useNativeDriver: true, - }), - ); - setState({ - animation, - rotate: animated.interpolate({ - inputRange: [0, 1], - /* $FlowFixMe(>=0.38.0) - Flow error detected during the deployment + React.useEffect( + () => { + if (props.status === 'PENDING') { + if (state.animation == null) { + const animated = new Animated.Value(0); + const animation = Animated.loop( + Animated.timing(animated, { + duration: 2000, + easing: Easing.linear, + toValue: 1, + useNativeDriver: true, + }), + ); + setState({ + animation, + rotate: animated.interpolate({ + inputRange: [0, 1], + /* $FlowFixMe(>=0.38.0) - Flow error detected during the deployment * of v0.38.0. To see the error, remove this comment and run flow */ - outputRange: ['0deg', '360deg'], - }), - }); - animation.start(); + outputRange: ['0deg', '360deg'], + }), + }); + animation.start(); + } + } else { + if (state.animation != null) { + state.animation.stop(); + setState({ + animation: null, + rotate: null, + }); + } } - } else { - if (state.animation != null) { - state.animation.stop(); - setState({ - animation: null, - rotate: null, - }); - } - } - return () => { - if (state.animation != null) { - state.animation.stop(); - } - }; - }, [props.status, state.animation]); + return () => { + if (state.animation != null) { + state.animation.stop(); + } + }; + }, + [props.status, state.animation], + ); let image; let color; diff --git a/Libraries/StyleSheet/StyleSheetTypes.js b/Libraries/StyleSheet/StyleSheetTypes.js index b2d596a14df668..65871539078b79 100644 --- a/Libraries/StyleSheet/StyleSheetTypes.js +++ b/Libraries/StyleSheet/StyleSheetTypes.js @@ -10,7 +10,7 @@ 'use strict'; -const AnimatedNode = require('../Animated/src/nodes/AnimatedNode'); +const AnimatedNode = require('react-animated/dist/nodes/AnimatedNode'); import type {NativeColorValue} from './PlatformColorValueTypes'; diff --git a/index.js b/index.js index 9d5a6dcb1458e5..a23bb3ab2048b3 100644 --- a/index.js +++ b/index.js @@ -47,7 +47,7 @@ import typeof VirtualizedList from './Libraries/Lists/VirtualizedList'; import typeof VirtualizedSectionList from './Libraries/Lists/VirtualizedSectionList'; import typeof ActionSheetIOS from './Libraries/ActionSheetIOS/ActionSheetIOS'; import typeof Alert from './Libraries/Alert/Alert'; -import typeof Animated from './Libraries/Animated/src/Animated'; +import typeof Animated from 'react-animated/dist/Animated'; import typeof Appearance from './Libraries/Utilities/Appearance'; import typeof AppRegistry from './Libraries/ReactNative/AppRegistry'; import typeof AppState from './Libraries/AppState/AppState'; @@ -58,7 +58,7 @@ import typeof DatePickerAndroid from './Libraries/Components/DatePickerAndroid/D import typeof DeviceInfo from './Libraries/Utilities/DeviceInfo'; import typeof DevSettings from './Libraries/Utilities/DevSettings'; import typeof Dimensions from './Libraries/Utilities/Dimensions'; -import typeof Easing from './Libraries/Animated/src/Easing'; +import typeof Easing from 'react-animated/dist/Easing'; import typeof ReactNative from './Libraries/Renderer/shims/ReactNative'; import typeof I18nManager from './Libraries/ReactNative/I18nManager'; import typeof ImagePickerIOS from './Libraries/Image/ImagePickerIOS'; @@ -272,7 +272,7 @@ module.exports = { return require('./Libraries/Alert/Alert'); }, get Animated(): Animated { - return require('./Libraries/Animated/src/Animated'); + return require('react-animated/dist/Animated'); }, get Appearance(): Appearance { return require('./Libraries/Utilities/Appearance'); @@ -323,7 +323,7 @@ module.exports = { return require('./Libraries/Utilities/Dimensions'); }, get Easing(): Easing { - return require('./Libraries/Animated/src/Easing'); + return require('react-animated/dist/Easing'); }, get findNodeHandle(): $PropertyType { return require('./Libraries/Renderer/shims/ReactNative').findNodeHandle; diff --git a/package.json b/package.json index d8f974bf508678..555437aa32170a 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,7 @@ "qs": "^6.5.1", "react-devtools-core": "^4.6.0", "react-refresh": "^0.4.0", + "react-animated": "^0.1.0", "regenerator-runtime": "^0.13.2", "scheduler": "0.19.1", "stacktrace-parser": "^0.1.3", diff --git a/Libraries/Animated/release/.gitignore b/packages/react-animated/.gitignore similarity index 100% rename from Libraries/Animated/release/.gitignore rename to packages/react-animated/.gitignore diff --git a/Libraries/Animated/examples/demo.html b/packages/react-animated/examples/demo.html similarity index 100% rename from Libraries/Animated/examples/demo.html rename to packages/react-animated/examples/demo.html diff --git a/Libraries/Animated/examples/pic1.jpg b/packages/react-animated/examples/pic1.jpg similarity index 100% rename from Libraries/Animated/examples/pic1.jpg rename to packages/react-animated/examples/pic1.jpg diff --git a/Libraries/Animated/examples/pic2.jpg b/packages/react-animated/examples/pic2.jpg similarity index 100% rename from Libraries/Animated/examples/pic2.jpg rename to packages/react-animated/examples/pic2.jpg diff --git a/Libraries/Animated/examples/pic3.jpg b/packages/react-animated/examples/pic3.jpg similarity index 100% rename from Libraries/Animated/examples/pic3.jpg rename to packages/react-animated/examples/pic3.jpg diff --git a/Libraries/Animated/examples/style.css b/packages/react-animated/examples/style.css similarity index 100% rename from Libraries/Animated/examples/style.css rename to packages/react-animated/examples/style.css diff --git a/Libraries/Animated/release/gulpfile.js b/packages/react-animated/gulpfile.js similarity index 100% rename from Libraries/Animated/release/gulpfile.js rename to packages/react-animated/gulpfile.js diff --git a/Libraries/Animated/release/package.json b/packages/react-animated/package.json similarity index 92% rename from Libraries/Animated/release/package.json rename to packages/react-animated/package.json index ec7fec05fd599f..68e070a1227baf 100644 --- a/Libraries/Animated/release/package.json +++ b/packages/react-animated/package.json @@ -7,8 +7,11 @@ "animated", "animation" ], + "files": [ + "dist" + ], "license": "MIT", - "main": "Animated.js", + "main": "dist/Animated.js", "dependencies": { "fbjs": "^1.0.0" }, diff --git a/Libraries/Animated/src/Animated.js b/packages/react-animated/src/Animated.js similarity index 100% rename from Libraries/Animated/src/Animated.js rename to packages/react-animated/src/Animated.js diff --git a/Libraries/Animated/src/AnimatedEvent.js b/packages/react-animated/src/AnimatedEvent.js similarity index 100% rename from Libraries/Animated/src/AnimatedEvent.js rename to packages/react-animated/src/AnimatedEvent.js diff --git a/Libraries/Animated/src/AnimatedImplementation.js b/packages/react-animated/src/AnimatedImplementation.js similarity index 100% rename from Libraries/Animated/src/AnimatedImplementation.js rename to packages/react-animated/src/AnimatedImplementation.js diff --git a/Libraries/Animated/src/AnimatedMock.js b/packages/react-animated/src/AnimatedMock.js similarity index 100% rename from Libraries/Animated/src/AnimatedMock.js rename to packages/react-animated/src/AnimatedMock.js diff --git a/Libraries/Animated/src/AnimatedWeb.js b/packages/react-animated/src/AnimatedWeb.js similarity index 100% rename from Libraries/Animated/src/AnimatedWeb.js rename to packages/react-animated/src/AnimatedWeb.js diff --git a/Libraries/Animated/src/Easing.js b/packages/react-animated/src/Easing.js similarity index 100% rename from Libraries/Animated/src/Easing.js rename to packages/react-animated/src/Easing.js diff --git a/Libraries/Animated/src/NativeAnimatedHelper.js b/packages/react-animated/src/NativeAnimatedHelper.js similarity index 100% rename from Libraries/Animated/src/NativeAnimatedHelper.js rename to packages/react-animated/src/NativeAnimatedHelper.js diff --git a/Libraries/Animated/src/NativeAnimatedModule.js b/packages/react-animated/src/NativeAnimatedModule.js similarity index 100% rename from Libraries/Animated/src/NativeAnimatedModule.js rename to packages/react-animated/src/NativeAnimatedModule.js diff --git a/Libraries/Animated/src/SpringConfig.js b/packages/react-animated/src/SpringConfig.js similarity index 100% rename from Libraries/Animated/src/SpringConfig.js rename to packages/react-animated/src/SpringConfig.js diff --git a/Libraries/Animated/src/__tests__/Animated-test.js b/packages/react-animated/src/__tests__/Animated-test.js similarity index 100% rename from Libraries/Animated/src/__tests__/Animated-test.js rename to packages/react-animated/src/__tests__/Animated-test.js diff --git a/Libraries/Animated/src/__tests__/AnimatedMock-test.js b/packages/react-animated/src/__tests__/AnimatedMock-test.js similarity index 100% rename from Libraries/Animated/src/__tests__/AnimatedMock-test.js rename to packages/react-animated/src/__tests__/AnimatedMock-test.js diff --git a/Libraries/Animated/src/__tests__/AnimatedNative-test.js b/packages/react-animated/src/__tests__/AnimatedNative-test.js similarity index 100% rename from Libraries/Animated/src/__tests__/AnimatedNative-test.js rename to packages/react-animated/src/__tests__/AnimatedNative-test.js diff --git a/Libraries/Animated/src/__tests__/Easing-test.js b/packages/react-animated/src/__tests__/Easing-test.js similarity index 100% rename from Libraries/Animated/src/__tests__/Easing-test.js rename to packages/react-animated/src/__tests__/Easing-test.js diff --git a/Libraries/Animated/src/__tests__/Interpolation-test.js b/packages/react-animated/src/__tests__/Interpolation-test.js similarity index 100% rename from Libraries/Animated/src/__tests__/Interpolation-test.js rename to packages/react-animated/src/__tests__/Interpolation-test.js diff --git a/Libraries/Animated/src/__tests__/TimingAnimation-test.js b/packages/react-animated/src/__tests__/TimingAnimation-test.js similarity index 100% rename from Libraries/Animated/src/__tests__/TimingAnimation-test.js rename to packages/react-animated/src/__tests__/TimingAnimation-test.js diff --git a/Libraries/Animated/src/__tests__/bezier-test.js b/packages/react-animated/src/__tests__/bezier-test.js similarity index 100% rename from Libraries/Animated/src/__tests__/bezier-test.js rename to packages/react-animated/src/__tests__/bezier-test.js diff --git a/Libraries/Animated/src/animations/Animation.js b/packages/react-animated/src/animations/Animation.js similarity index 100% rename from Libraries/Animated/src/animations/Animation.js rename to packages/react-animated/src/animations/Animation.js diff --git a/Libraries/Animated/src/animations/DecayAnimation.js b/packages/react-animated/src/animations/DecayAnimation.js similarity index 100% rename from Libraries/Animated/src/animations/DecayAnimation.js rename to packages/react-animated/src/animations/DecayAnimation.js diff --git a/Libraries/Animated/src/animations/SpringAnimation.js b/packages/react-animated/src/animations/SpringAnimation.js similarity index 100% rename from Libraries/Animated/src/animations/SpringAnimation.js rename to packages/react-animated/src/animations/SpringAnimation.js diff --git a/Libraries/Animated/src/animations/TimingAnimation.js b/packages/react-animated/src/animations/TimingAnimation.js similarity index 100% rename from Libraries/Animated/src/animations/TimingAnimation.js rename to packages/react-animated/src/animations/TimingAnimation.js diff --git a/Libraries/Animated/src/bezier.js b/packages/react-animated/src/bezier.js similarity index 100% rename from Libraries/Animated/src/bezier.js rename to packages/react-animated/src/bezier.js diff --git a/Libraries/Animated/src/components/AnimatedFlatList.js b/packages/react-animated/src/components/AnimatedFlatList.js similarity index 100% rename from Libraries/Animated/src/components/AnimatedFlatList.js rename to packages/react-animated/src/components/AnimatedFlatList.js diff --git a/Libraries/Animated/src/components/AnimatedImage.js b/packages/react-animated/src/components/AnimatedImage.js similarity index 100% rename from Libraries/Animated/src/components/AnimatedImage.js rename to packages/react-animated/src/components/AnimatedImage.js diff --git a/Libraries/Animated/src/components/AnimatedScrollView.js b/packages/react-animated/src/components/AnimatedScrollView.js similarity index 100% rename from Libraries/Animated/src/components/AnimatedScrollView.js rename to packages/react-animated/src/components/AnimatedScrollView.js diff --git a/Libraries/Animated/src/components/AnimatedSectionList.js b/packages/react-animated/src/components/AnimatedSectionList.js similarity index 100% rename from Libraries/Animated/src/components/AnimatedSectionList.js rename to packages/react-animated/src/components/AnimatedSectionList.js diff --git a/Libraries/Animated/src/components/AnimatedText.js b/packages/react-animated/src/components/AnimatedText.js similarity index 100% rename from Libraries/Animated/src/components/AnimatedText.js rename to packages/react-animated/src/components/AnimatedText.js diff --git a/Libraries/Animated/src/components/AnimatedView.js b/packages/react-animated/src/components/AnimatedView.js similarity index 100% rename from Libraries/Animated/src/components/AnimatedView.js rename to packages/react-animated/src/components/AnimatedView.js diff --git a/Libraries/Animated/src/createAnimatedComponent.js b/packages/react-animated/src/createAnimatedComponent.js similarity index 100% rename from Libraries/Animated/src/createAnimatedComponent.js rename to packages/react-animated/src/createAnimatedComponent.js diff --git a/Libraries/Animated/src/nodes/AnimatedAddition.js b/packages/react-animated/src/nodes/AnimatedAddition.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedAddition.js rename to packages/react-animated/src/nodes/AnimatedAddition.js diff --git a/Libraries/Animated/src/nodes/AnimatedDiffClamp.js b/packages/react-animated/src/nodes/AnimatedDiffClamp.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedDiffClamp.js rename to packages/react-animated/src/nodes/AnimatedDiffClamp.js diff --git a/Libraries/Animated/src/nodes/AnimatedDivision.js b/packages/react-animated/src/nodes/AnimatedDivision.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedDivision.js rename to packages/react-animated/src/nodes/AnimatedDivision.js diff --git a/Libraries/Animated/src/nodes/AnimatedInterpolation.js b/packages/react-animated/src/nodes/AnimatedInterpolation.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedInterpolation.js rename to packages/react-animated/src/nodes/AnimatedInterpolation.js diff --git a/Libraries/Animated/src/nodes/AnimatedModulo.js b/packages/react-animated/src/nodes/AnimatedModulo.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedModulo.js rename to packages/react-animated/src/nodes/AnimatedModulo.js diff --git a/Libraries/Animated/src/nodes/AnimatedMultiplication.js b/packages/react-animated/src/nodes/AnimatedMultiplication.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedMultiplication.js rename to packages/react-animated/src/nodes/AnimatedMultiplication.js diff --git a/Libraries/Animated/src/nodes/AnimatedNode.js b/packages/react-animated/src/nodes/AnimatedNode.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedNode.js rename to packages/react-animated/src/nodes/AnimatedNode.js diff --git a/Libraries/Animated/src/nodes/AnimatedProps.js b/packages/react-animated/src/nodes/AnimatedProps.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedProps.js rename to packages/react-animated/src/nodes/AnimatedProps.js diff --git a/Libraries/Animated/src/nodes/AnimatedStyle.js b/packages/react-animated/src/nodes/AnimatedStyle.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedStyle.js rename to packages/react-animated/src/nodes/AnimatedStyle.js diff --git a/Libraries/Animated/src/nodes/AnimatedSubtraction.js b/packages/react-animated/src/nodes/AnimatedSubtraction.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedSubtraction.js rename to packages/react-animated/src/nodes/AnimatedSubtraction.js diff --git a/Libraries/Animated/src/nodes/AnimatedTracking.js b/packages/react-animated/src/nodes/AnimatedTracking.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedTracking.js rename to packages/react-animated/src/nodes/AnimatedTracking.js diff --git a/Libraries/Animated/src/nodes/AnimatedTransform.js b/packages/react-animated/src/nodes/AnimatedTransform.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedTransform.js rename to packages/react-animated/src/nodes/AnimatedTransform.js diff --git a/Libraries/Animated/src/nodes/AnimatedValue.js b/packages/react-animated/src/nodes/AnimatedValue.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedValue.js rename to packages/react-animated/src/nodes/AnimatedValue.js diff --git a/Libraries/Animated/src/nodes/AnimatedValueXY.js b/packages/react-animated/src/nodes/AnimatedValueXY.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedValueXY.js rename to packages/react-animated/src/nodes/AnimatedValueXY.js diff --git a/Libraries/Animated/src/nodes/AnimatedWithChildren.js b/packages/react-animated/src/nodes/AnimatedWithChildren.js similarity index 100% rename from Libraries/Animated/src/nodes/AnimatedWithChildren.js rename to packages/react-animated/src/nodes/AnimatedWithChildren.js diff --git a/Libraries/Animated/src/polyfills/InteractionManager.js b/packages/react-animated/src/polyfills/InteractionManager.js similarity index 100% rename from Libraries/Animated/src/polyfills/InteractionManager.js rename to packages/react-animated/src/polyfills/InteractionManager.js diff --git a/Libraries/Animated/src/polyfills/Set.js b/packages/react-animated/src/polyfills/Set.js similarity index 100% rename from Libraries/Animated/src/polyfills/Set.js rename to packages/react-animated/src/polyfills/Set.js diff --git a/Libraries/Animated/src/polyfills/flattenStyle.js b/packages/react-animated/src/polyfills/flattenStyle.js similarity index 100% rename from Libraries/Animated/src/polyfills/flattenStyle.js rename to packages/react-animated/src/polyfills/flattenStyle.js