react-native-reanimated 2.4.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp +72 -0
- package/Common/cpp/NativeModules/NativeReanimatedModule.cpp +30 -1
- package/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +64 -39
- package/Common/cpp/Tools/RuntimeDecorator.cpp +2 -0
- package/Common/cpp/headers/AnimatedSensor/AnimatedSensorModule.h +41 -0
- package/Common/cpp/headers/NativeModules/NativeReanimatedModule.h +14 -0
- package/Common/cpp/headers/NativeModules/NativeReanimatedModuleSpec.h +14 -0
- package/Common/cpp/headers/SharedItems/MutableValue.h +4 -1
- package/Common/cpp/headers/SharedItems/ShareableValue.h +3 -0
- package/Common/cpp/headers/SharedItems/ValueWrapper.h +3 -0
- package/Common/cpp/headers/Tools/PlatformDepMethodsHolder.h +11 -0
- package/Common/cpp/headers/Tools/RuntimeDecorator.h +2 -0
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/RNReanimated.podspec +15 -6
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/CMakeLists.txt +198 -0
- package/android/README.md +15 -0
- package/android/build.gradle +676 -73
- package/android/empty.cpp +1 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +25 -0
- package/android/gradlew +234 -0
- package/android/gradlew.bat +89 -0
- package/android/react-native-reanimated-64-hermes.aar +0 -0
- package/android/react-native-reanimated-64-jsc.aar +0 -0
- package/android/react-native-reanimated-65-hermes.aar +0 -0
- package/android/react-native-reanimated-65-jsc.aar +0 -0
- package/android/react-native-reanimated-66-hermes.aar +0 -0
- package/android/react-native-reanimated-66-jsc.aar +0 -0
- package/android/react-native-reanimated-67-hermes.aar +0 -0
- package/android/react-native-reanimated-67-jsc.aar +0 -0
- package/android/react-native-reanimated-68-hermes.aar +0 -0
- package/android/react-native-reanimated-68-jsc.aar +0 -0
- package/android/rnVersionPatch/62/layoutReanimation/ReanimatedNativeHierarchyManager.java +412 -0
- package/android/rnVersionPatch/62/layoutReanimation/ReanimatedUIImplementation.java +68 -0
- package/android/rnVersionPatch/63/layoutReanimation/ReanimatedUIImplementation.java +68 -0
- package/android/rnVersionPatch/64/layoutReanimation/ReanimatedUIImplementation.java +68 -0
- package/android/rnVersionPatch/65/.gitkeep +0 -0
- package/android/rnVersionPatch/66/.gitkeep +0 -0
- package/android/rnVersionPatch/67/.gitkeep +0 -0
- package/android/rnVersionPatch/68/.gitkeep +0 -0
- package/android/rnVersionPatch/backup/.gitkeep +0 -0
- package/android/settings.gradle +1 -0
- package/android/spotless.gradle +9 -0
- package/android/src/{AndroidManifest.xml → main/AndroidManifest.xml} +0 -0
- package/android/src/main/cpp/AndroidErrorHandler.cpp +42 -0
- package/android/src/main/cpp/AndroidLogger.cpp +27 -0
- package/android/src/main/cpp/AndroidScheduler.cpp +59 -0
- package/android/src/main/cpp/JNIHelper.cpp +59 -0
- package/android/src/main/cpp/LayoutAnimations.cpp +103 -0
- package/android/src/main/cpp/NativeProxy.cpp +327 -0
- package/android/src/main/cpp/OnLoad.cpp +17 -0
- package/android/src/main/cpp/TurboModule.cpp +44 -0
- package/android/src/main/cpp/headers/AndroidErrorHandler.h +30 -0
- package/android/src/main/cpp/headers/AndroidLogger.h +16 -0
- package/android/src/main/cpp/headers/AndroidScheduler.h +41 -0
- package/android/src/main/cpp/headers/JNIHelper.h +30 -0
- package/android/src/main/cpp/headers/LayoutAnimations.h +42 -0
- package/android/src/main/cpp/headers/NativeProxy.h +170 -0
- package/android/src/main/cpp/headers/TurboModule.h +70 -0
- package/android/src/main/java/com/facebook/react/uimanager/UIManagerReanimatedHelper.java +15 -0
- package/android/src/main/java/com/swmansion/common/GestureHandlerStateManager.java +5 -0
- package/android/src/main/java/com/swmansion/reanimated/AndroidErrorHandler.java +8 -0
- package/android/src/main/java/com/swmansion/reanimated/CopiedEvent.java +43 -0
- package/android/src/main/java/com/swmansion/reanimated/MapUtils.java +26 -0
- package/android/src/main/java/com/swmansion/reanimated/NativeMethodsHelper.java +117 -0
- package/android/src/main/java/com/swmansion/reanimated/NativeProxy.java +285 -0
- package/android/src/main/java/com/swmansion/reanimated/NodesManager.java +682 -0
- package/android/src/main/java/com/swmansion/reanimated/ReanimatedJSIModulePackage.java +29 -0
- package/android/src/main/java/com/swmansion/reanimated/ReanimatedModule.java +251 -0
- package/android/src/main/java/com/swmansion/reanimated/ReanimatedPackage.java +96 -0
- package/android/src/main/java/com/swmansion/reanimated/Scheduler.java +51 -0
- package/android/src/main/java/com/swmansion/reanimated/UpdateContext.java +11 -0
- package/android/src/main/java/com/swmansion/reanimated/Utils.java +32 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java +517 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/LayoutAnimations.java +56 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/NativeMethodsHolder.java +11 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedNativeHierarchyManager.java +410 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIImplementation.java +68 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIManager.java +292 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/Snapshot.java +121 -0
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ViewHierarchyObserver.java +12 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/AlwaysNode.java +29 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/BezierNode.java +87 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/BlockNode.java +24 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/CallFuncNode.java +49 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ClockNode.java +38 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ClockOpNode.java +73 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ConcatNode.java +36 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/CondNode.java +41 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/DebugNode.java +33 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/EventNode.java +83 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/FinalNode.java +5 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/FunctionNode.java +20 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/JSCallNode.java +41 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/Node.java +139 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/NoopNode.java +37 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/OperatorNode.java +377 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ParamNode.java +71 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/PropsNode.java +153 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/SetNode.java +32 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/StyleNode.java +40 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/TransformNode.java +84 -0
- package/android/src/main/java/com/swmansion/reanimated/nodes/ValueNode.java +40 -0
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java +41 -0
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorContainer.java +40 -0
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorListener.java +31 -0
- package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorType.java +35 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/ChangeTransition.java +84 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/SaneSidePropagation.java +25 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/Scale.java +86 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/TransitionModule.java +41 -0
- package/android/src/main/java/com/swmansion/reanimated/transitions/TransitionUtils.java +161 -0
- package/ios/LayoutReanimation/REAAnimationsManager.m +14 -4
- package/ios/REAModule.m +8 -9
- package/ios/REANodesManager.h +4 -1
- package/ios/REANodesManager.m +76 -4
- package/ios/native/NativeProxy.mm +76 -4
- package/ios/sensor/ReanimatedSensor.h +25 -0
- package/ios/sensor/ReanimatedSensor.m +217 -0
- package/ios/sensor/ReanimatedSensorContainer.h +12 -0
- package/ios/sensor/ReanimatedSensorContainer.m +40 -0
- package/ios/sensor/ReanimatedSensorType.h +7 -0
- package/lib/{src/Animated.js → Animated.js} +0 -0
- package/lib/{src/ConfigHelper.js → ConfigHelper.js} +2 -2
- package/lib/{src/ReanimatedEventEmitter.js → ReanimatedEventEmitter.js} +0 -0
- package/lib/{src/ReanimatedModule.js → ReanimatedModule.js} +0 -0
- package/lib/{src/ReanimatedModule.macos.js → ReanimatedModule.macos.js} +0 -0
- package/lib/{src/ReanimatedModule.native.js → ReanimatedModule.native.js} +0 -0
- package/lib/{src/ReanimatedModule.windows.js → ReanimatedModule.windows.js} +0 -0
- package/lib/{src/ReanimatedModuleCompat.js → ReanimatedModuleCompat.js} +0 -0
- package/lib/{src/__mocks__ → __mocks__}/ReanimatedEventEmitter.js +0 -0
- package/lib/{src/__mocks__ → __mocks__}/ReanimatedModule.native.js +0 -0
- package/lib/{src/createAnimatedComponent.js → createAnimatedComponent.js} +3 -4
- package/lib/{src/index.js → index.js} +0 -0
- package/lib/{src/reanimated1 → reanimated1}/Easing.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/SpringConfig.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/Transitioning.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/animations/Animation.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/animations/SpringUtils.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/animations/backwardCompatibleAnimWrapper.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/animations/decay.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/animations/spring.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/animations/timing.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/base.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedAlways.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedBezier.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedBlock.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedCall.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedCallFunc.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedClock.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedClockTest.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedCode.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedConcat.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedCond.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedDebug.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedEvent.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedFunction.js +1 -1
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedNode.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedOperator.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedParam.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedProps.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedSet.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedStartClock.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedStopClock.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedStyle.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedTransform.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/AnimatedValue.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/Core.test.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/InternalAnimatedValue.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/__mocks__/AnimatedProps.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/core/createEventObjectProxyPolyfill.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/__mocks__/evaluateOnce.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/acc.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/color.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/diff.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/diffClamp.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/evaluateOnce.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/index.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/interpolate.js +2 -4
- package/lib/{src/reanimated1 → reanimated1}/derived/interpolateColors.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/onChange.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/derived/useCode.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/index.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/operators.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/useValue.js +0 -0
- package/lib/{src/reanimated1 → reanimated1}/val.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/Bezier.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/Colors.js +2 -1
- package/lib/{src/reanimated2 → reanimated2}/Easing.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/NativeMethods.js +0 -0
- package/lib/reanimated2/NativeReanimated/NativeReanimated.js +50 -0
- package/lib/{src/reanimated2 → reanimated2}/NativeReanimated/index.js +0 -4
- package/lib/{src/reanimated2 → reanimated2}/PlatformChecker.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/PropAdapters.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/UpdateProps.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/ViewDescriptorsSet.js +2 -2
- package/lib/{src/reanimated2 → reanimated2}/WorkletEventHandler.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/__mocks__/MutableValue.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/__mocks__/NativeReanimated.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/__mocks__/NativeReanimated.native.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/animation/commonTypes.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/animation/decay.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/animation/delay.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/animation/index.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/animation/repeat.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/animation/sequence.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/animation/spring.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/animation/styleAnimation.js +2 -1
- package/lib/{src/reanimated2 → reanimated2}/animation/timing.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/animation/util.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/commonTypes.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/component/FlatList.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/component/WrappedComponents.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/component/index.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/core.js +30 -24
- package/lib/{src/reanimated2 → reanimated2}/globals.d.ts +6 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/Hooks.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/commonTypes.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/index.js +1 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/useAnimatedGestureHandler.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/useAnimatedReaction.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/useAnimatedRef.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/useAnimatedScrollHandler.js +0 -0
- package/lib/reanimated2/hook/useAnimatedSensor.js +66 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/useAnimatedStyle.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/useDerivedValue.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/useSharedValue.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/hook/utils.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/index.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/interpolateColor.js +11 -11
- package/lib/{src/reanimated2 → reanimated2}/interpolation.js +1 -1
- package/lib/{src/reanimated2 → reanimated2}/jestUtils.js +9 -4
- package/lib/{src/reanimated2 → reanimated2}/js-reanimated/JSReanimated.js +23 -2
- package/lib/{src/reanimated2 → reanimated2}/js-reanimated/Mapper.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/js-reanimated/MapperRegistry.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/js-reanimated/MutableValue.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/js-reanimated/commonTypes.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/js-reanimated/index.js +3 -3
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/LayoutAnimationRepository.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/BaseAnimationBuilder.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js +8 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/Keyframe.js +2 -1
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/commonTypes.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/animationBuilder/index.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Bounce.js +32 -42
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Default.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Fade.js +20 -38
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Flip.js +32 -44
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Lightspeed.js +8 -16
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Pinwheel.js +6 -10
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Roll.js +8 -12
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Rotate.js +20 -36
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Slide.js +16 -20
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Stretch.js +8 -12
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Zoom.js +32 -48
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/index.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/CurvedTransition.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/EntryExitTransition.js +22 -18
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/FadingTransition.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/JumpingTransition.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/LinearTransition.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/SequencedTransition.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultTransitions/index.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/index.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/mock.js +3 -2
- package/lib/{src/reanimated2 → reanimated2}/platform-specific/RNRenderer.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/platform-specific/RNRenderer.web.js +0 -0
- package/lib/{src/reanimated2 → reanimated2}/utils.js +0 -0
- package/lib/{src/setAndForwardRef.js → setAndForwardRef.js} +0 -0
- package/lib/types/lib/ConfigHelper.d.ts +12 -0
- package/lib/types/lib/ReanimatedEventEmitter.d.ts +3 -0
- package/lib/types/lib/ReanimatedModule.d.ts +2 -0
- package/lib/types/lib/ReanimatedModule.macos.d.ts +2 -0
- package/lib/types/lib/ReanimatedModule.native.d.ts +2 -0
- package/lib/types/lib/ReanimatedModule.windows.d.ts +2 -0
- package/lib/types/lib/ReanimatedModuleCompat.d.ts +14 -0
- package/lib/types/lib/createAnimatedComponent.d.ts +33 -0
- package/lib/types/lib/reanimated2/Bezier.d.ts +6 -0
- package/lib/types/lib/reanimated2/Colors.d.ts +31 -0
- package/lib/types/lib/reanimated2/Easing.d.ts +172 -0
- package/lib/types/lib/reanimated2/NativeMethods.d.ts +14 -0
- package/lib/types/lib/reanimated2/NativeReanimated/NativeReanimated.d.ts +20 -0
- package/lib/types/lib/reanimated2/NativeReanimated/index.d.ts +3 -0
- package/lib/types/lib/reanimated2/PlatformChecker.d.ts +5 -0
- package/lib/types/lib/reanimated2/PropAdapters.d.ts +4 -0
- package/lib/types/lib/reanimated2/UpdateProps.d.ts +9 -0
- package/lib/types/lib/reanimated2/ViewDescriptorsSet.d.ts +20 -0
- package/lib/types/lib/reanimated2/WorkletEventHandler.d.ts +13 -0
- package/lib/types/lib/reanimated2/__mocks__/MutableValue.d.ts +5 -0
- package/lib/types/lib/reanimated2/__mocks__/NativeReanimated.d.ts +13 -0
- package/lib/types/lib/reanimated2/__mocks__/NativeReanimated.native.d.ts +13 -0
- package/lib/types/lib/reanimated2/animation/commonTypes.d.ts +27 -0
- package/lib/types/lib/reanimated2/animation/decay.d.ts +19 -0
- package/lib/types/lib/reanimated2/animation/delay.d.ts +7 -0
- package/lib/types/lib/reanimated2/animation/index.d.ts +9 -0
- package/lib/types/lib/reanimated2/animation/repeat.d.ts +12 -0
- package/lib/types/lib/reanimated2/animation/sequence.d.ts +7 -0
- package/lib/types/lib/reanimated2/animation/spring.d.ts +22 -0
- package/lib/types/lib/reanimated2/animation/styleAnimation.d.ts +7 -0
- package/lib/types/lib/reanimated2/animation/timing.d.ts +21 -0
- package/lib/types/lib/reanimated2/animation/util.d.ts +9 -0
- package/lib/types/lib/reanimated2/commonTypes.d.ts +80 -0
- package/lib/types/lib/reanimated2/component/FlatList.d.ts +9 -0
- package/lib/types/lib/reanimated2/component/WrappedComponents.d.ts +8 -0
- package/lib/types/lib/reanimated2/component/index.d.ts +9 -0
- package/lib/types/lib/reanimated2/core.d.ts +24 -0
- package/lib/types/lib/reanimated2/hook/Hooks.d.ts +5 -0
- package/lib/types/lib/reanimated2/hook/commonTypes.d.ts +14 -0
- package/lib/types/lib/reanimated2/hook/index.d.ts +10 -0
- package/lib/types/lib/reanimated2/hook/useAnimatedGestureHandler.d.ts +35 -0
- package/lib/types/lib/reanimated2/hook/useAnimatedReaction.d.ts +12 -0
- package/lib/types/lib/reanimated2/hook/useAnimatedRef.d.ts +3 -0
- package/lib/types/lib/reanimated2/hook/useAnimatedScrollHandler.d.ts +21 -0
- package/lib/types/lib/reanimated2/hook/useAnimatedSensor.d.ts +20 -0
- package/lib/types/lib/reanimated2/hook/useAnimatedStyle.d.ts +11 -0
- package/lib/types/lib/reanimated2/hook/useDerivedValue.d.ts +4 -0
- package/lib/types/lib/reanimated2/hook/useSharedValue.d.ts +2 -0
- package/lib/types/lib/reanimated2/hook/utils.d.ts +28 -0
- package/lib/types/lib/reanimated2/index.d.ts +12 -0
- package/lib/types/lib/reanimated2/interpolateColor.d.ts +26 -0
- package/lib/types/lib/reanimated2/interpolation.d.ts +14 -0
- package/lib/types/lib/reanimated2/jestUtils.d.ts +12 -0
- package/lib/types/lib/reanimated2/js-reanimated/JSReanimated.d.ts +30 -0
- package/lib/types/lib/reanimated2/js-reanimated/Mapper.d.ts +14 -0
- package/lib/types/lib/reanimated2/js-reanimated/MapperRegistry.d.ts +14 -0
- package/lib/types/lib/reanimated2/js-reanimated/MutableValue.d.ts +14 -0
- package/lib/types/lib/reanimated2/js-reanimated/commonTypes.d.ts +44 -0
- package/lib/types/lib/reanimated2/js-reanimated/index.d.ts +15 -0
- package/lib/types/lib/reanimated2/layoutReanimation/LayoutAnimationRepository.d.ts +1 -0
- package/lib/types/lib/reanimated2/layoutReanimation/animationBuilder/BaseAnimationBuilder.d.ts +22 -0
- package/lib/types/lib/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.d.ts +38 -0
- package/lib/types/lib/reanimated2/layoutReanimation/animationBuilder/Keyframe.d.ts +25 -0
- package/lib/types/lib/reanimated2/layoutReanimation/animationBuilder/commonTypes.d.ts +77 -0
- package/lib/types/lib/reanimated2/layoutReanimation/animationBuilder/index.d.ts +4 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Bounce.d.ts +62 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Default.d.ts +4 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Fade.d.ts +42 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Flip.d.ts +50 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.d.ts +18 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.d.ts +10 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Roll.d.ts +18 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Rotate.d.ts +34 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Slide.d.ts +34 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Stretch.d.ts +18 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/Zoom.d.ts +66 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultAnimations/index.d.ts +10 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.d.ts +19 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.d.ts +13 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.d.ts +6 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.d.ts +6 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.d.ts +7 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.d.ts +9 -0
- package/lib/types/lib/reanimated2/layoutReanimation/defaultTransitions/index.d.ts +6 -0
- package/lib/types/lib/reanimated2/layoutReanimation/index.d.ts +4 -0
- package/lib/types/lib/reanimated2/mock.d.ts +55 -0
- package/lib/types/lib/reanimated2/platform-specific/RNRenderer.d.ts +1 -0
- package/lib/types/lib/reanimated2/platform-specific/RNRenderer.web.d.ts +0 -0
- package/lib/types/lib/reanimated2/utils.d.ts +7 -0
- package/lib/types/lib/setAndForwardRef.d.ts +40 -0
- package/lib/types/react-native-reanimated-tests.d.ts +1 -0
- package/mock.js +5 -4
- package/package.json +44 -38
- package/plugin.js +3 -0
- package/react-native-reanimated.d.ts +64 -34
- package/src/ConfigHelper.ts +4 -4
- package/src/createAnimatedComponent.tsx +4 -4
- package/src/reanimated1/core/AnimatedFunction.js +1 -1
- package/src/reanimated1/derived/interpolate.js +2 -4
- package/src/reanimated2/Colors.ts +2 -1
- package/src/reanimated2/NativeReanimated/NativeReanimated.ts +42 -15
- package/src/reanimated2/NativeReanimated/index.ts +0 -6
- package/src/reanimated2/ViewDescriptorsSet.ts +2 -3
- package/src/reanimated2/animation/index.ts +1 -0
- package/src/reanimated2/animation/styleAnimation.ts +10 -7
- package/src/reanimated2/animation/timing.ts +3 -1
- package/src/reanimated2/animation/util.ts +10 -11
- package/src/reanimated2/commonTypes.ts +20 -0
- package/src/reanimated2/component/FlatList.tsx +3 -2
- package/src/reanimated2/core.ts +34 -26
- package/src/reanimated2/globals.d.ts +6 -0
- package/src/reanimated2/hook/index.ts +1 -0
- package/src/reanimated2/hook/useAnimatedSensor.ts +91 -0
- package/src/reanimated2/hook/utils.ts +2 -1
- package/src/reanimated2/interpolateColor.ts +11 -11
- package/src/reanimated2/interpolation.ts +2 -6
- package/src/reanimated2/jestUtils.ts +20 -4
- package/src/reanimated2/js-reanimated/JSReanimated.ts +25 -2
- package/src/reanimated2/js-reanimated/index.ts +3 -3
- package/src/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.ts +13 -0
- package/src/reanimated2/layoutReanimation/animationBuilder/Keyframe.ts +2 -3
- package/src/reanimated2/layoutReanimation/defaultAnimations/Bounce.ts +51 -21
- package/src/reanimated2/layoutReanimation/defaultAnimations/Fade.ts +40 -10
- package/src/reanimated2/layoutReanimation/defaultAnimations/Flip.ts +48 -12
- package/src/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.ts +16 -4
- package/src/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.ts +8 -2
- package/src/reanimated2/layoutReanimation/defaultAnimations/Roll.ts +16 -4
- package/src/reanimated2/layoutReanimation/defaultAnimations/Rotate.ts +32 -8
- package/src/reanimated2/layoutReanimation/defaultAnimations/Slide.ts +32 -10
- package/src/reanimated2/layoutReanimation/defaultAnimations/Stretch.ts +16 -4
- package/src/reanimated2/layoutReanimation/defaultAnimations/Zoom.ts +64 -16
- package/src/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.ts +2 -1
- package/src/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.ts +26 -19
- package/src/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.ts +2 -1
- package/src/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.ts +2 -1
- package/src/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.ts +2 -1
- package/src/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.ts +2 -1
- package/src/reanimated2/mock.ts +3 -2
- package/android/expo/linking.gradle +0 -46
- package/android/expo/src/main/java/com/swmansion/reanimated/EXReanimatedAdapter.java +0 -12
- package/android/expo/src/main/java/expo/modules/adapters/reanimated/EXReanimatedPackage.java +0 -26
- package/android/react-native-reanimated-63-hermes.aar +0 -0
- package/android/react-native-reanimated-63-jsc.aar +0 -0
- package/android/src/main/java/com/swmansion/reanimated/ReanimatedProxyPackage.java +0 -15
- package/expo-module.config.json +0 -3
- package/lib/src/reanimated2/NativeReanimated/NativeReanimated.js +0 -37
- package/libSo/fbjni/jni/arm64-v8a/libfbjni.so +0 -0
- package/libSo/fbjni/jni/armeabi-v7a/libfbjni.so +0 -0
- package/libSo/fbjni/jni/x86/libfbjni.so +0 -0
- package/libSo/fbjni/jni/x86_64/libfbjni.so +0 -0
|
@@ -7,16 +7,15 @@ export class FlipInXUp extends ComplexAnimationBuilder {
|
|
|
7
7
|
const [animation, config] = this.getAnimationAndConfig();
|
|
8
8
|
const delay = this.getDelay();
|
|
9
9
|
const callback = this.callbackV;
|
|
10
|
+
const initialValues = this.initialValues;
|
|
10
11
|
return (targetValues) => {
|
|
11
12
|
'worklet';
|
|
12
13
|
return {
|
|
13
|
-
initialValues: {
|
|
14
|
-
transform: [
|
|
14
|
+
initialValues: Object.assign({ transform: [
|
|
15
15
|
{ perspective: 500 },
|
|
16
16
|
{ rotateX: '90deg' },
|
|
17
17
|
{ translateY: -targetValues.targetHeight },
|
|
18
|
-
],
|
|
19
|
-
},
|
|
18
|
+
] }, initialValues),
|
|
20
19
|
animations: {
|
|
21
20
|
transform: [
|
|
22
21
|
{ perspective: 500 },
|
|
@@ -41,16 +40,15 @@ export class FlipInYLeft extends ComplexAnimationBuilder {
|
|
|
41
40
|
const [animation, config] = this.getAnimationAndConfig();
|
|
42
41
|
const delay = this.getDelay();
|
|
43
42
|
const callback = this.callbackV;
|
|
43
|
+
const initialValues = this.initialValues;
|
|
44
44
|
return (targetValues) => {
|
|
45
45
|
'worklet';
|
|
46
46
|
return {
|
|
47
|
-
initialValues: {
|
|
48
|
-
transform: [
|
|
47
|
+
initialValues: Object.assign({ transform: [
|
|
49
48
|
{ perspective: 500 },
|
|
50
49
|
{ rotateY: '-90deg' },
|
|
51
50
|
{ translateX: -targetValues.targetWidth },
|
|
52
|
-
],
|
|
53
|
-
},
|
|
51
|
+
] }, initialValues),
|
|
54
52
|
animations: {
|
|
55
53
|
transform: [
|
|
56
54
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -75,16 +73,15 @@ export class FlipInXDown extends ComplexAnimationBuilder {
|
|
|
75
73
|
const [animation, config] = this.getAnimationAndConfig();
|
|
76
74
|
const delay = this.getDelay();
|
|
77
75
|
const callback = this.callbackV;
|
|
76
|
+
const initialValues = this.initialValues;
|
|
78
77
|
return (targetValues) => {
|
|
79
78
|
'worklet';
|
|
80
79
|
return {
|
|
81
|
-
initialValues: {
|
|
82
|
-
transform: [
|
|
80
|
+
initialValues: Object.assign({ transform: [
|
|
83
81
|
{ perspective: 500 },
|
|
84
82
|
{ rotateX: '-90deg' },
|
|
85
83
|
{ translateY: targetValues.targetHeight },
|
|
86
|
-
],
|
|
87
|
-
},
|
|
84
|
+
] }, initialValues),
|
|
88
85
|
animations: {
|
|
89
86
|
transform: [
|
|
90
87
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -109,16 +106,15 @@ export class FlipInYRight extends ComplexAnimationBuilder {
|
|
|
109
106
|
const [animation, config] = this.getAnimationAndConfig();
|
|
110
107
|
const delay = this.getDelay();
|
|
111
108
|
const callback = this.callbackV;
|
|
109
|
+
const initialValues = this.initialValues;
|
|
112
110
|
return (targetValues) => {
|
|
113
111
|
'worklet';
|
|
114
112
|
return {
|
|
115
|
-
initialValues: {
|
|
116
|
-
transform: [
|
|
113
|
+
initialValues: Object.assign({ transform: [
|
|
117
114
|
{ perspective: 500 },
|
|
118
115
|
{ rotateY: '90deg' },
|
|
119
116
|
{ translateX: targetValues.targetWidth },
|
|
120
|
-
],
|
|
121
|
-
},
|
|
117
|
+
] }, initialValues),
|
|
122
118
|
animations: {
|
|
123
119
|
transform: [
|
|
124
120
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -143,12 +139,11 @@ export class FlipInEasyX extends ComplexAnimationBuilder {
|
|
|
143
139
|
const [animation, config] = this.getAnimationAndConfig();
|
|
144
140
|
const delay = this.getDelay();
|
|
145
141
|
const callback = this.callbackV;
|
|
142
|
+
const initialValues = this.initialValues;
|
|
146
143
|
return () => {
|
|
147
144
|
'worklet';
|
|
148
145
|
return {
|
|
149
|
-
initialValues: {
|
|
150
|
-
transform: [{ perspective: 500 }, { rotateX: '90deg' }],
|
|
151
|
-
},
|
|
146
|
+
initialValues: Object.assign({ transform: [{ perspective: 500 }, { rotateX: '90deg' }] }, initialValues),
|
|
152
147
|
animations: {
|
|
153
148
|
transform: [
|
|
154
149
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -172,12 +167,11 @@ export class FlipInEasyY extends ComplexAnimationBuilder {
|
|
|
172
167
|
const [animation, config] = this.getAnimationAndConfig();
|
|
173
168
|
const delay = this.getDelay();
|
|
174
169
|
const callback = this.callbackV;
|
|
170
|
+
const initialValues = this.initialValues;
|
|
175
171
|
return () => {
|
|
176
172
|
'worklet';
|
|
177
173
|
return {
|
|
178
|
-
initialValues: {
|
|
179
|
-
transform: [{ perspective: 500 }, { rotateY: '90deg' }],
|
|
180
|
-
},
|
|
174
|
+
initialValues: Object.assign({ transform: [{ perspective: 500 }, { rotateY: '90deg' }] }, initialValues),
|
|
181
175
|
animations: {
|
|
182
176
|
transform: [
|
|
183
177
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -201,16 +195,15 @@ export class FlipOutXUp extends ComplexAnimationBuilder {
|
|
|
201
195
|
const [animation, config] = this.getAnimationAndConfig();
|
|
202
196
|
const delay = this.getDelay();
|
|
203
197
|
const callback = this.callbackV;
|
|
198
|
+
const initialValues = this.initialValues;
|
|
204
199
|
return (targetValues) => {
|
|
205
200
|
'worklet';
|
|
206
201
|
return {
|
|
207
|
-
initialValues: {
|
|
208
|
-
transform: [
|
|
202
|
+
initialValues: Object.assign({ transform: [
|
|
209
203
|
{ perspective: 500 },
|
|
210
204
|
{ rotateX: '0deg' },
|
|
211
205
|
{ translateY: 0 },
|
|
212
|
-
],
|
|
213
|
-
},
|
|
206
|
+
] }, initialValues),
|
|
214
207
|
animations: {
|
|
215
208
|
transform: [
|
|
216
209
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -237,16 +230,15 @@ export class FlipOutYLeft extends ComplexAnimationBuilder {
|
|
|
237
230
|
const [animation, config] = this.getAnimationAndConfig();
|
|
238
231
|
const delay = this.getDelay();
|
|
239
232
|
const callback = this.callbackV;
|
|
233
|
+
const initialValues = this.initialValues;
|
|
240
234
|
return (targetValues) => {
|
|
241
235
|
'worklet';
|
|
242
236
|
return {
|
|
243
|
-
initialValues: {
|
|
244
|
-
transform: [
|
|
237
|
+
initialValues: Object.assign({ transform: [
|
|
245
238
|
{ perspective: 500 },
|
|
246
239
|
{ rotateY: '0deg' },
|
|
247
240
|
{ translateX: 0 },
|
|
248
|
-
],
|
|
249
|
-
},
|
|
241
|
+
] }, initialValues),
|
|
250
242
|
animations: {
|
|
251
243
|
transform: [
|
|
252
244
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -273,16 +265,15 @@ export class FlipOutXDown extends ComplexAnimationBuilder {
|
|
|
273
265
|
const [animation, config] = this.getAnimationAndConfig();
|
|
274
266
|
const delay = this.getDelay();
|
|
275
267
|
const callback = this.callbackV;
|
|
268
|
+
const initialValues = this.initialValues;
|
|
276
269
|
return (targetValues) => {
|
|
277
270
|
'worklet';
|
|
278
271
|
return {
|
|
279
|
-
initialValues: {
|
|
280
|
-
transform: [
|
|
272
|
+
initialValues: Object.assign({ transform: [
|
|
281
273
|
{ perspective: 500 },
|
|
282
274
|
{ rotateX: '0deg' },
|
|
283
275
|
{ translateY: 0 },
|
|
284
|
-
],
|
|
285
|
-
},
|
|
276
|
+
] }, initialValues),
|
|
286
277
|
animations: {
|
|
287
278
|
transform: [
|
|
288
279
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -309,16 +300,15 @@ export class FlipOutYRight extends ComplexAnimationBuilder {
|
|
|
309
300
|
const [animation, config] = this.getAnimationAndConfig();
|
|
310
301
|
const delay = this.getDelay();
|
|
311
302
|
const callback = this.callbackV;
|
|
303
|
+
const initialValues = this.initialValues;
|
|
312
304
|
return (targetValues) => {
|
|
313
305
|
'worklet';
|
|
314
306
|
return {
|
|
315
|
-
initialValues: {
|
|
316
|
-
transform: [
|
|
307
|
+
initialValues: Object.assign({ transform: [
|
|
317
308
|
{ perspective: 500 },
|
|
318
309
|
{ rotateY: '0deg' },
|
|
319
310
|
{ translateX: 0 },
|
|
320
|
-
],
|
|
321
|
-
},
|
|
311
|
+
] }, initialValues),
|
|
322
312
|
animations: {
|
|
323
313
|
transform: [
|
|
324
314
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -345,12 +335,11 @@ export class FlipOutEasyX extends ComplexAnimationBuilder {
|
|
|
345
335
|
const [animation, config] = this.getAnimationAndConfig();
|
|
346
336
|
const delay = this.getDelay();
|
|
347
337
|
const callback = this.callbackV;
|
|
338
|
+
const initialValues = this.initialValues;
|
|
348
339
|
return () => {
|
|
349
340
|
'worklet';
|
|
350
341
|
return {
|
|
351
|
-
initialValues: {
|
|
352
|
-
transform: [{ perspective: 500 }, { rotateX: '0deg' }],
|
|
353
|
-
},
|
|
342
|
+
initialValues: Object.assign({ transform: [{ perspective: 500 }, { rotateX: '0deg' }] }, initialValues),
|
|
354
343
|
animations: {
|
|
355
344
|
transform: [
|
|
356
345
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
|
@@ -374,12 +363,11 @@ export class FlipOutEasyY extends ComplexAnimationBuilder {
|
|
|
374
363
|
const [animation, config] = this.getAnimationAndConfig();
|
|
375
364
|
const delay = this.getDelay();
|
|
376
365
|
const callback = this.callbackV;
|
|
366
|
+
const initialValues = this.initialValues;
|
|
377
367
|
return () => {
|
|
378
368
|
'worklet';
|
|
379
369
|
return {
|
|
380
|
-
initialValues: {
|
|
381
|
-
transform: [{ perspective: 500 }, { rotateY: '0deg' }],
|
|
382
|
-
},
|
|
370
|
+
initialValues: Object.assign({ transform: [{ perspective: 500 }, { rotateY: '0deg' }] }, initialValues),
|
|
383
371
|
animations: {
|
|
384
372
|
transform: [
|
|
385
373
|
{ perspective: delayFunction(delay, animation(500, config)) },
|
package/lib/{src/reanimated2 → reanimated2}/layoutReanimation/defaultAnimations/Lightspeed.js
RENAMED
|
@@ -11,6 +11,7 @@ export class LightSpeedInRight extends ComplexAnimationBuilder {
|
|
|
11
11
|
const delay = this.getDelay();
|
|
12
12
|
const duration = this.getDuration();
|
|
13
13
|
const callback = this.callbackV;
|
|
14
|
+
const initialValues = this.initialValues;
|
|
14
15
|
return () => {
|
|
15
16
|
'worklet';
|
|
16
17
|
return {
|
|
@@ -25,10 +26,7 @@ export class LightSpeedInRight extends ComplexAnimationBuilder {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
},
|
|
28
|
-
initialValues: {
|
|
29
|
-
opacity: 0,
|
|
30
|
-
transform: [{ translateX: width }, { skewX: '-45deg' }],
|
|
31
|
-
},
|
|
29
|
+
initialValues: Object.assign({ opacity: 0, transform: [{ translateX: width }, { skewX: '-45deg' }] }, initialValues),
|
|
32
30
|
callback: callback,
|
|
33
31
|
};
|
|
34
32
|
};
|
|
@@ -47,6 +45,7 @@ export class LightSpeedInLeft extends ComplexAnimationBuilder {
|
|
|
47
45
|
const delay = this.getDelay();
|
|
48
46
|
const duration = this.getDuration();
|
|
49
47
|
const callback = this.callbackV;
|
|
48
|
+
const initialValues = this.initialValues;
|
|
50
49
|
return () => {
|
|
51
50
|
'worklet';
|
|
52
51
|
return {
|
|
@@ -61,10 +60,7 @@ export class LightSpeedInLeft extends ComplexAnimationBuilder {
|
|
|
61
60
|
},
|
|
62
61
|
],
|
|
63
62
|
},
|
|
64
|
-
initialValues: {
|
|
65
|
-
opacity: 0,
|
|
66
|
-
transform: [{ translateX: -width }, { skewX: '45deg' }],
|
|
67
|
-
},
|
|
63
|
+
initialValues: Object.assign({ opacity: 0, transform: [{ translateX: -width }, { skewX: '45deg' }] }, initialValues),
|
|
68
64
|
callback: callback,
|
|
69
65
|
};
|
|
70
66
|
};
|
|
@@ -82,6 +78,7 @@ export class LightSpeedOutRight extends ComplexAnimationBuilder {
|
|
|
82
78
|
const [animation, config] = this.getAnimationAndConfig();
|
|
83
79
|
const delay = this.getDelay();
|
|
84
80
|
const callback = this.callbackV;
|
|
81
|
+
const initialValues = this.initialValues;
|
|
85
82
|
return () => {
|
|
86
83
|
'worklet';
|
|
87
84
|
return {
|
|
@@ -96,10 +93,7 @@ export class LightSpeedOutRight extends ComplexAnimationBuilder {
|
|
|
96
93
|
},
|
|
97
94
|
],
|
|
98
95
|
},
|
|
99
|
-
initialValues: {
|
|
100
|
-
opacity: 1,
|
|
101
|
-
transform: [{ translateX: 0 }, { skewX: '0deg' }],
|
|
102
|
-
},
|
|
96
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ translateX: 0 }, { skewX: '0deg' }] }, initialValues),
|
|
103
97
|
callback: callback,
|
|
104
98
|
};
|
|
105
99
|
};
|
|
@@ -117,6 +111,7 @@ export class LightSpeedOutLeft extends ComplexAnimationBuilder {
|
|
|
117
111
|
const [animation, config] = this.getAnimationAndConfig();
|
|
118
112
|
const delay = this.getDelay();
|
|
119
113
|
const callback = this.callbackV;
|
|
114
|
+
const initialValues = this.initialValues;
|
|
120
115
|
return () => {
|
|
121
116
|
'worklet';
|
|
122
117
|
return {
|
|
@@ -131,10 +126,7 @@ export class LightSpeedOutLeft extends ComplexAnimationBuilder {
|
|
|
131
126
|
},
|
|
132
127
|
],
|
|
133
128
|
},
|
|
134
|
-
initialValues: {
|
|
135
|
-
opacity: 1,
|
|
136
|
-
transform: [{ translateX: 0 }, { skewX: '0deg' }],
|
|
137
|
-
},
|
|
129
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ translateX: 0 }, { skewX: '0deg' }] }, initialValues),
|
|
138
130
|
callback: callback,
|
|
139
131
|
};
|
|
140
132
|
};
|
|
@@ -7,6 +7,7 @@ export class PinwheelIn extends ComplexAnimationBuilder {
|
|
|
7
7
|
const [animation, config] = this.getAnimationAndConfig();
|
|
8
8
|
const delay = this.getDelay();
|
|
9
9
|
const callback = this.callbackV;
|
|
10
|
+
const initialValues = this.initialValues;
|
|
10
11
|
return (_values) => {
|
|
11
12
|
'worklet';
|
|
12
13
|
return {
|
|
@@ -21,17 +22,14 @@ export class PinwheelIn extends ComplexAnimationBuilder {
|
|
|
21
22
|
},
|
|
22
23
|
],
|
|
23
24
|
},
|
|
24
|
-
initialValues: {
|
|
25
|
-
opacity: 0,
|
|
26
|
-
transform: [
|
|
25
|
+
initialValues: Object.assign({ opacity: 0, transform: [
|
|
27
26
|
{
|
|
28
27
|
scale: 0,
|
|
29
28
|
},
|
|
30
29
|
{
|
|
31
30
|
rotate: '5',
|
|
32
31
|
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
32
|
+
] }, initialValues),
|
|
35
33
|
callback: callback,
|
|
36
34
|
};
|
|
37
35
|
};
|
|
@@ -49,6 +47,7 @@ export class PinwheelOut extends ComplexAnimationBuilder {
|
|
|
49
47
|
const [animation, config] = this.getAnimationAndConfig();
|
|
50
48
|
const delay = this.getDelay();
|
|
51
49
|
const callback = this.callbackV;
|
|
50
|
+
const initialValues = this.initialValues;
|
|
52
51
|
return (_values) => {
|
|
53
52
|
'worklet';
|
|
54
53
|
return {
|
|
@@ -63,17 +62,14 @@ export class PinwheelOut extends ComplexAnimationBuilder {
|
|
|
63
62
|
},
|
|
64
63
|
],
|
|
65
64
|
},
|
|
66
|
-
initialValues: {
|
|
67
|
-
opacity: 1,
|
|
68
|
-
transform: [
|
|
65
|
+
initialValues: Object.assign({ opacity: 1, transform: [
|
|
69
66
|
{
|
|
70
67
|
scale: 1,
|
|
71
68
|
},
|
|
72
69
|
{
|
|
73
70
|
rotate: '0',
|
|
74
71
|
},
|
|
75
|
-
],
|
|
76
|
-
},
|
|
72
|
+
] }, initialValues),
|
|
77
73
|
callback: callback,
|
|
78
74
|
};
|
|
79
75
|
};
|
|
@@ -9,6 +9,7 @@ export class RollInLeft extends ComplexAnimationBuilder {
|
|
|
9
9
|
const [animation, config] = this.getAnimationAndConfig();
|
|
10
10
|
const delay = this.getDelay();
|
|
11
11
|
const callback = this.callbackV;
|
|
12
|
+
const initialValues = this.initialValues;
|
|
12
13
|
return () => {
|
|
13
14
|
'worklet';
|
|
14
15
|
return {
|
|
@@ -18,9 +19,7 @@ export class RollInLeft extends ComplexAnimationBuilder {
|
|
|
18
19
|
{ rotate: delayFunction(delay, animation('0deg', config)) },
|
|
19
20
|
],
|
|
20
21
|
},
|
|
21
|
-
initialValues: {
|
|
22
|
-
transform: [{ translateX: -width }, { rotate: '-180deg' }],
|
|
23
|
-
},
|
|
22
|
+
initialValues: Object.assign({ transform: [{ translateX: -width }, { rotate: '-180deg' }] }, initialValues),
|
|
24
23
|
callback: callback,
|
|
25
24
|
};
|
|
26
25
|
};
|
|
@@ -38,6 +37,7 @@ export class RollInRight extends ComplexAnimationBuilder {
|
|
|
38
37
|
const [animation, config] = this.getAnimationAndConfig();
|
|
39
38
|
const delay = this.getDelay();
|
|
40
39
|
const callback = this.callbackV;
|
|
40
|
+
const initialValues = this.initialValues;
|
|
41
41
|
return () => {
|
|
42
42
|
'worklet';
|
|
43
43
|
return {
|
|
@@ -47,9 +47,7 @@ export class RollInRight extends ComplexAnimationBuilder {
|
|
|
47
47
|
{ rotate: delayFunction(delay, animation('0deg', config)) },
|
|
48
48
|
],
|
|
49
49
|
},
|
|
50
|
-
initialValues: {
|
|
51
|
-
transform: [{ translateX: width }, { rotate: '180deg' }],
|
|
52
|
-
},
|
|
50
|
+
initialValues: Object.assign({ transform: [{ translateX: width }, { rotate: '180deg' }] }, initialValues),
|
|
53
51
|
callback: callback,
|
|
54
52
|
};
|
|
55
53
|
};
|
|
@@ -67,6 +65,7 @@ export class RollOutLeft extends ComplexAnimationBuilder {
|
|
|
67
65
|
const [animation, config] = this.getAnimationAndConfig();
|
|
68
66
|
const delay = this.getDelay();
|
|
69
67
|
const callback = this.callbackV;
|
|
68
|
+
const initialValues = this.initialValues;
|
|
70
69
|
return () => {
|
|
71
70
|
'worklet';
|
|
72
71
|
return {
|
|
@@ -76,9 +75,7 @@ export class RollOutLeft extends ComplexAnimationBuilder {
|
|
|
76
75
|
{ rotate: delayFunction(delay, animation('-180deg', config)) },
|
|
77
76
|
],
|
|
78
77
|
},
|
|
79
|
-
initialValues: {
|
|
80
|
-
transform: [{ translateX: 0 }, { rotate: '0deg' }],
|
|
81
|
-
},
|
|
78
|
+
initialValues: Object.assign({ transform: [{ translateX: 0 }, { rotate: '0deg' }] }, initialValues),
|
|
82
79
|
callback: callback,
|
|
83
80
|
};
|
|
84
81
|
};
|
|
@@ -96,6 +93,7 @@ export class RollOutRight extends ComplexAnimationBuilder {
|
|
|
96
93
|
const [animation, config] = this.getAnimationAndConfig();
|
|
97
94
|
const delay = this.getDelay();
|
|
98
95
|
const callback = this.callbackV;
|
|
96
|
+
const initialValues = this.initialValues;
|
|
99
97
|
return () => {
|
|
100
98
|
'worklet';
|
|
101
99
|
return {
|
|
@@ -105,9 +103,7 @@ export class RollOutRight extends ComplexAnimationBuilder {
|
|
|
105
103
|
{ rotate: delayFunction(delay, animation('180deg', config)) },
|
|
106
104
|
],
|
|
107
105
|
},
|
|
108
|
-
initialValues: {
|
|
109
|
-
transform: [{ translateX: 0 }, { rotate: '0deg' }],
|
|
110
|
-
},
|
|
106
|
+
initialValues: Object.assign({ transform: [{ translateX: 0 }, { rotate: '0deg' }] }, initialValues),
|
|
111
107
|
callback: callback,
|
|
112
108
|
};
|
|
113
109
|
};
|
|
@@ -7,6 +7,7 @@ export class RotateInDownLeft extends ComplexAnimationBuilder {
|
|
|
7
7
|
const [animation, config] = this.getAnimationAndConfig();
|
|
8
8
|
const delay = this.getDelay();
|
|
9
9
|
const callback = this.callbackV;
|
|
10
|
+
const initialValues = this.initialValues;
|
|
10
11
|
return (values) => {
|
|
11
12
|
'worklet';
|
|
12
13
|
return {
|
|
@@ -18,14 +19,11 @@ export class RotateInDownLeft extends ComplexAnimationBuilder {
|
|
|
18
19
|
{ translateY: delayFunction(delay, animation(0, config)) },
|
|
19
20
|
],
|
|
20
21
|
},
|
|
21
|
-
initialValues: {
|
|
22
|
-
opacity: 0,
|
|
23
|
-
transform: [
|
|
22
|
+
initialValues: Object.assign({ opacity: 0, transform: [
|
|
24
23
|
{ rotate: '-90deg' },
|
|
25
24
|
{ translateX: values.targetWidth / 2 - values.targetHeight / 2 },
|
|
26
25
|
{ translateY: -(values.targetWidth / 2 - values.targetHeight / 2) },
|
|
27
|
-
],
|
|
28
|
-
},
|
|
26
|
+
] }, initialValues),
|
|
29
27
|
callback: callback,
|
|
30
28
|
};
|
|
31
29
|
};
|
|
@@ -43,6 +41,7 @@ export class RotateInDownRight extends ComplexAnimationBuilder {
|
|
|
43
41
|
const [animation, config] = this.getAnimationAndConfig();
|
|
44
42
|
const delay = this.getDelay();
|
|
45
43
|
const callback = this.callbackV;
|
|
44
|
+
const initialValues = this.initialValues;
|
|
46
45
|
return (values) => {
|
|
47
46
|
'worklet';
|
|
48
47
|
return {
|
|
@@ -54,14 +53,11 @@ export class RotateInDownRight extends ComplexAnimationBuilder {
|
|
|
54
53
|
{ translateY: delayFunction(delay, animation(0, config)) },
|
|
55
54
|
],
|
|
56
55
|
},
|
|
57
|
-
initialValues: {
|
|
58
|
-
opacity: 0,
|
|
59
|
-
transform: [
|
|
56
|
+
initialValues: Object.assign({ opacity: 0, transform: [
|
|
60
57
|
{ rotate: '90deg' },
|
|
61
58
|
{ translateX: -(values.targetWidth / 2 - values.targetHeight / 2) },
|
|
62
59
|
{ translateY: -(values.targetWidth / 2 - values.targetHeight / 2) },
|
|
63
|
-
],
|
|
64
|
-
},
|
|
60
|
+
] }, initialValues),
|
|
65
61
|
callback: callback,
|
|
66
62
|
};
|
|
67
63
|
};
|
|
@@ -79,6 +75,7 @@ export class RotateInUpLeft extends ComplexAnimationBuilder {
|
|
|
79
75
|
const [animation, config] = this.getAnimationAndConfig();
|
|
80
76
|
const delay = this.getDelay();
|
|
81
77
|
const callback = this.callbackV;
|
|
78
|
+
const initialValues = this.initialValues;
|
|
82
79
|
return (values) => {
|
|
83
80
|
'worklet';
|
|
84
81
|
return {
|
|
@@ -90,14 +87,11 @@ export class RotateInUpLeft extends ComplexAnimationBuilder {
|
|
|
90
87
|
{ translateY: delayFunction(delay, animation(0, config)) },
|
|
91
88
|
],
|
|
92
89
|
},
|
|
93
|
-
initialValues: {
|
|
94
|
-
opacity: 0,
|
|
95
|
-
transform: [
|
|
90
|
+
initialValues: Object.assign({ opacity: 0, transform: [
|
|
96
91
|
{ rotate: '90deg' },
|
|
97
92
|
{ translateX: values.targetWidth / 2 - values.targetHeight / 2 },
|
|
98
93
|
{ translateY: values.targetWidth / 2 - values.targetHeight / 2 },
|
|
99
|
-
],
|
|
100
|
-
},
|
|
94
|
+
] }, initialValues),
|
|
101
95
|
callback: callback,
|
|
102
96
|
};
|
|
103
97
|
};
|
|
@@ -115,6 +109,7 @@ export class RotateInUpRight extends ComplexAnimationBuilder {
|
|
|
115
109
|
const [animation, config] = this.getAnimationAndConfig();
|
|
116
110
|
const delay = this.getDelay();
|
|
117
111
|
const callback = this.callbackV;
|
|
112
|
+
const initialValues = this.initialValues;
|
|
118
113
|
return (values) => {
|
|
119
114
|
'worklet';
|
|
120
115
|
return {
|
|
@@ -126,14 +121,11 @@ export class RotateInUpRight extends ComplexAnimationBuilder {
|
|
|
126
121
|
{ translateY: delayFunction(delay, animation(0, config)) },
|
|
127
122
|
],
|
|
128
123
|
},
|
|
129
|
-
initialValues: {
|
|
130
|
-
opacity: 0,
|
|
131
|
-
transform: [
|
|
124
|
+
initialValues: Object.assign({ opacity: 0, transform: [
|
|
132
125
|
{ rotate: '-90deg' },
|
|
133
126
|
{ translateX: -(values.targetWidth / 2 - values.targetHeight / 2) },
|
|
134
127
|
{ translateY: values.targetWidth / 2 - values.targetHeight / 2 },
|
|
135
|
-
],
|
|
136
|
-
},
|
|
128
|
+
] }, initialValues),
|
|
137
129
|
callback: callback,
|
|
138
130
|
};
|
|
139
131
|
};
|
|
@@ -151,6 +143,7 @@ export class RotateOutDownLeft extends ComplexAnimationBuilder {
|
|
|
151
143
|
const [animation, config] = this.getAnimationAndConfig();
|
|
152
144
|
const delay = this.getDelay();
|
|
153
145
|
const callback = this.callbackV;
|
|
146
|
+
const initialValues = this.initialValues;
|
|
154
147
|
return (values) => {
|
|
155
148
|
'worklet';
|
|
156
149
|
return {
|
|
@@ -166,10 +159,7 @@ export class RotateOutDownLeft extends ComplexAnimationBuilder {
|
|
|
166
159
|
},
|
|
167
160
|
],
|
|
168
161
|
},
|
|
169
|
-
initialValues: {
|
|
170
|
-
opacity: 1,
|
|
171
|
-
transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],
|
|
172
|
-
},
|
|
162
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }] }, initialValues),
|
|
173
163
|
callback: callback,
|
|
174
164
|
};
|
|
175
165
|
};
|
|
@@ -187,6 +177,7 @@ export class RotateOutDownRight extends ComplexAnimationBuilder {
|
|
|
187
177
|
const [animation, config] = this.getAnimationAndConfig();
|
|
188
178
|
const delay = this.getDelay();
|
|
189
179
|
const callback = this.callbackV;
|
|
180
|
+
const initialValues = this.initialValues;
|
|
190
181
|
return (values) => {
|
|
191
182
|
'worklet';
|
|
192
183
|
return {
|
|
@@ -202,10 +193,7 @@ export class RotateOutDownRight extends ComplexAnimationBuilder {
|
|
|
202
193
|
},
|
|
203
194
|
],
|
|
204
195
|
},
|
|
205
|
-
initialValues: {
|
|
206
|
-
opacity: 1,
|
|
207
|
-
transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],
|
|
208
|
-
},
|
|
196
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }] }, initialValues),
|
|
209
197
|
callback: callback,
|
|
210
198
|
};
|
|
211
199
|
};
|
|
@@ -223,6 +211,7 @@ export class RotateOutUpLeft extends ComplexAnimationBuilder {
|
|
|
223
211
|
const [animation, config] = this.getAnimationAndConfig();
|
|
224
212
|
const delay = this.getDelay();
|
|
225
213
|
const callback = this.callbackV;
|
|
214
|
+
const initialValues = this.initialValues;
|
|
226
215
|
return (values) => {
|
|
227
216
|
'worklet';
|
|
228
217
|
return {
|
|
@@ -238,10 +227,7 @@ export class RotateOutUpLeft extends ComplexAnimationBuilder {
|
|
|
238
227
|
},
|
|
239
228
|
],
|
|
240
229
|
},
|
|
241
|
-
initialValues: {
|
|
242
|
-
opacity: 1,
|
|
243
|
-
transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],
|
|
244
|
-
},
|
|
230
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }] }, initialValues),
|
|
245
231
|
callback: callback,
|
|
246
232
|
};
|
|
247
233
|
};
|
|
@@ -259,6 +245,7 @@ export class RotateOutUpRight extends ComplexAnimationBuilder {
|
|
|
259
245
|
const [animation, config] = this.getAnimationAndConfig();
|
|
260
246
|
const delay = this.getDelay();
|
|
261
247
|
const callback = this.callbackV;
|
|
248
|
+
const initialValues = this.initialValues;
|
|
262
249
|
return (values) => {
|
|
263
250
|
'worklet';
|
|
264
251
|
return {
|
|
@@ -274,10 +261,7 @@ export class RotateOutUpRight extends ComplexAnimationBuilder {
|
|
|
274
261
|
},
|
|
275
262
|
],
|
|
276
263
|
},
|
|
277
|
-
initialValues: {
|
|
278
|
-
opacity: 1,
|
|
279
|
-
transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }],
|
|
280
|
-
},
|
|
264
|
+
initialValues: Object.assign({ opacity: 1, transform: [{ rotate: '0deg' }, { translateX: 0 }, { translateY: 0 }] }, initialValues),
|
|
281
265
|
callback: callback,
|
|
282
266
|
};
|
|
283
267
|
};
|