react-native-reanimated 2.4.1 → 2.7.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/SharedItems/ShareableValue.cpp +2 -2
- package/Common/cpp/Tools/RuntimeDecorator.cpp +2 -14
- 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/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 +288 -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 +524 -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.h +1 -1
- package/ios/LayoutReanimation/REAAnimationsManager.m +16 -6
- package/ios/LayoutReanimation/REASnapshot.m +1 -1
- package/ios/LayoutReanimation/REAUIManager.h +1 -1
- package/ios/LayoutReanimation/REAUIManager.mm +4 -5
- package/ios/Nodes/REAAlwaysNode.h +1 -1
- package/ios/Nodes/REAAlwaysNode.m +5 -5
- package/ios/Nodes/REABezierNode.h +1 -1
- package/ios/Nodes/REABezierNode.m +4 -5
- package/ios/Nodes/REABlockNode.h +1 -1
- package/ios/Nodes/REABlockNode.m +2 -2
- package/ios/Nodes/REACallFuncNode.h +1 -1
- package/ios/Nodes/REACallFuncNode.m +5 -5
- package/ios/Nodes/REAClockNodes.h +1 -1
- package/ios/Nodes/REAClockNodes.m +4 -4
- package/ios/Nodes/REAConcatNode.h +1 -1
- package/ios/Nodes/REAConcatNode.m +3 -3
- package/ios/Nodes/REACondNode.h +1 -1
- package/ios/Nodes/REACondNode.m +3 -3
- package/ios/Nodes/READebugNode.h +1 -1
- package/ios/Nodes/READebugNode.m +3 -3
- package/ios/Nodes/REAEventNode.h +1 -2
- package/ios/Nodes/REAEventNode.m +3 -3
- package/ios/Nodes/REAFunctionNode.h +1 -1
- package/ios/Nodes/REAFunctionNode.m +3 -3
- package/ios/Nodes/REAJSCallNode.h +1 -1
- package/ios/Nodes/REAJSCallNode.m +3 -3
- package/ios/Nodes/REANode.m +2 -2
- package/ios/Nodes/REAOperatorNode.h +1 -1
- package/ios/Nodes/REAOperatorNode.m +2 -3
- package/ios/Nodes/REAParamNode.h +1 -1
- package/ios/Nodes/REAParamNode.m +4 -4
- package/ios/Nodes/REAPropsNode.h +1 -1
- package/ios/Nodes/REAPropsNode.m +4 -6
- package/ios/Nodes/REASetNode.h +1 -1
- package/ios/Nodes/REASetNode.m +4 -4
- package/ios/Nodes/REAStyleNode.h +1 -1
- package/ios/Nodes/REAStyleNode.m +2 -3
- package/ios/Nodes/REATransformNode.h +1 -1
- package/ios/Nodes/REATransformNode.m +2 -2
- package/ios/Nodes/REAValueNode.h +1 -3
- package/ios/Nodes/REAValueNode.m +1 -1
- package/ios/REAEventDispatcher.m +1 -1
- package/ios/REAModule.h +1 -1
- package/ios/REAModule.m +12 -14
- package/ios/REANodesManager.h +5 -3
- package/ios/REANodesManager.m +97 -27
- package/ios/Transitioning/RCTConvert+REATransition.h +1 -2
- package/ios/Transitioning/RCTConvert+REATransition.m +1 -1
- package/ios/Transitioning/REAAllTransitions.h +1 -1
- package/ios/Transitioning/REAAllTransitions.m +2 -3
- package/ios/Transitioning/REATransition.h +2 -3
- package/ios/Transitioning/REATransition.m +3 -4
- package/ios/Transitioning/REATransitionAnimation.m +1 -2
- package/ios/Transitioning/REATransitionManager.m +2 -4
- package/ios/Transitioning/REATransitionValues.m +2 -3
- package/ios/native/NativeMethods.h +1 -3
- package/ios/native/NativeMethods.mm +1 -1
- package/ios/native/NativeProxy.h +2 -2
- package/ios/native/NativeProxy.mm +86 -15
- package/ios/native/REAIOSErrorHandler.h +2 -4
- package/ios/native/REAIOSErrorHandler.mm +1 -1
- package/ios/native/REAIOSLogger.h +1 -3
- package/ios/native/REAIOSLogger.mm +1 -1
- package/ios/native/REAIOSScheduler.h +1 -3
- package/ios/native/REAIOSScheduler.mm +2 -2
- package/ios/native/REAInitializer.h +0 -7
- package/ios/native/REAInitializer.mm +2 -2
- package/ios/native/UIResponder+Reanimated.mm +3 -3
- 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/ConfigHelper.js +2 -3
- package/lib/createAnimatedComponent.js +3 -4
- package/lib/reanimated1/core/AnimatedFunction.js +1 -1
- package/lib/reanimated1/derived/interpolate.js +2 -4
- package/lib/reanimated2/Colors.js +2 -1
- package/lib/reanimated2/Easing.js +9 -3
- package/lib/reanimated2/NativeReanimated/NativeReanimated.js +25 -12
- package/lib/reanimated2/NativeReanimated/index.js +0 -4
- package/lib/reanimated2/ViewDescriptorsSet.js +2 -2
- package/lib/reanimated2/animation/styleAnimation.js +2 -1
- package/lib/reanimated2/core.js +30 -60
- package/lib/reanimated2/globals.d.ts +7 -2
- package/lib/reanimated2/hook/index.js +1 -0
- package/lib/reanimated2/hook/useAnimatedSensor.js +66 -0
- package/lib/reanimated2/interpolateColor.js +11 -11
- package/lib/reanimated2/interpolation.js +1 -1
- package/lib/reanimated2/jestUtils.js +9 -4
- package/lib/reanimated2/js-reanimated/JSReanimated.js +23 -2
- package/lib/reanimated2/js-reanimated/index.js +3 -3
- package/lib/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js +8 -0
- package/lib/reanimated2/layoutReanimation/animationBuilder/Keyframe.js +2 -1
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Bounce.js +32 -42
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Fade.js +20 -38
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Flip.js +32 -44
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.js +8 -16
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.js +6 -10
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Roll.js +8 -12
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Rotate.js +20 -36
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Slide.js +16 -20
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Stretch.js +8 -12
- package/lib/reanimated2/layoutReanimation/defaultAnimations/Zoom.js +32 -48
- package/lib/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.js +22 -18
- package/lib/reanimated2/mock.js +3 -2
- 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 +79 -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 +4 -4
- package/package.json +43 -39
- package/plugin.js +3 -12
- package/react-native-reanimated.d.ts +58 -32
- package/src/ConfigHelper.ts +4 -5
- 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/Easing.ts +9 -3
- 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 -1
- package/src/reanimated2/component/FlatList.tsx +3 -2
- package/src/reanimated2/core.ts +34 -73
- package/src/reanimated2/globals.d.ts +7 -2
- 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/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
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
} from './commonTypes';
|
|
7
7
|
import { EasingFn } from '../../Easing';
|
|
8
8
|
import { BaseAnimationBuilder } from './BaseAnimationBuilder';
|
|
9
|
+
import { StyleProps } from '../../commonTypes';
|
|
10
|
+
|
|
9
11
|
export class ComplexAnimationBuilder extends BaseAnimationBuilder {
|
|
10
12
|
easingV?: EasingFn;
|
|
11
13
|
rotateV?: string;
|
|
@@ -16,6 +18,7 @@ export class ComplexAnimationBuilder extends BaseAnimationBuilder {
|
|
|
16
18
|
overshootClampingV?: number;
|
|
17
19
|
restDisplacementThresholdV?: number;
|
|
18
20
|
restSpeedThresholdV?: number;
|
|
21
|
+
initialValues?: StyleProps;
|
|
19
22
|
|
|
20
23
|
static createInstance: () => ComplexAnimationBuilder;
|
|
21
24
|
|
|
@@ -115,6 +118,16 @@ export class ComplexAnimationBuilder extends BaseAnimationBuilder {
|
|
|
115
118
|
return this;
|
|
116
119
|
}
|
|
117
120
|
|
|
121
|
+
static withInitialValues(values: StyleProps): BaseAnimationBuilder {
|
|
122
|
+
const instance = this.createInstance();
|
|
123
|
+
return instance.withInitialValues(values);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
withInitialValues(values: StyleProps): BaseAnimationBuilder {
|
|
127
|
+
this.initialValues = values;
|
|
128
|
+
return this;
|
|
129
|
+
}
|
|
130
|
+
|
|
118
131
|
getAnimationAndConfig(): LayoutAnimationAndConfig {
|
|
119
132
|
const duration = this.durationV;
|
|
120
133
|
const easing = this.easingV;
|
|
@@ -74,9 +74,8 @@ export class Keyframe implements IEntryExitAnimationBuilder {
|
|
|
74
74
|
if (styleProp === 'transform') {
|
|
75
75
|
initialValues[styleProp]?.forEach((transformStyle, index) => {
|
|
76
76
|
Object.keys(transformStyle).forEach((transformProp: string) => {
|
|
77
|
-
parsedKeyframes[
|
|
78
|
-
|
|
79
|
-
] = [];
|
|
77
|
+
parsedKeyframes[index.toString() + '_transform:' + transformProp] =
|
|
78
|
+
[];
|
|
80
79
|
});
|
|
81
80
|
});
|
|
82
81
|
} else {
|
|
@@ -4,13 +4,14 @@ import {
|
|
|
4
4
|
} from '../animationBuilder/commonTypes';
|
|
5
5
|
import { withSequence, withTiming } from '../../animation';
|
|
6
6
|
import { Dimensions } from 'react-native';
|
|
7
|
-
import {
|
|
7
|
+
import { ComplexAnimationBuilder } from '../animationBuilder/ComplexAnimationBuilder';
|
|
8
8
|
|
|
9
9
|
const { width, height } = Dimensions.get('window');
|
|
10
10
|
|
|
11
11
|
export class BounceIn
|
|
12
|
-
extends
|
|
13
|
-
implements IEntryExitAnimationBuilder
|
|
12
|
+
extends ComplexAnimationBuilder
|
|
13
|
+
implements IEntryExitAnimationBuilder
|
|
14
|
+
{
|
|
14
15
|
static createInstance(): BounceIn {
|
|
15
16
|
return new BounceIn();
|
|
16
17
|
}
|
|
@@ -28,6 +29,7 @@ export class BounceIn
|
|
|
28
29
|
const delay = this.getDelay();
|
|
29
30
|
const duration = this.getDuration();
|
|
30
31
|
const callback = this.callbackV;
|
|
32
|
+
const initialValues = this.initialValues;
|
|
31
33
|
|
|
32
34
|
return () => {
|
|
33
35
|
'worklet';
|
|
@@ -49,6 +51,7 @@ export class BounceIn
|
|
|
49
51
|
},
|
|
50
52
|
initialValues: {
|
|
51
53
|
transform: [{ scale: 0 }],
|
|
54
|
+
...initialValues,
|
|
52
55
|
},
|
|
53
56
|
callback: callback,
|
|
54
57
|
};
|
|
@@ -57,8 +60,9 @@ export class BounceIn
|
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
export class BounceInDown
|
|
60
|
-
extends
|
|
61
|
-
implements IEntryExitAnimationBuilder
|
|
63
|
+
extends ComplexAnimationBuilder
|
|
64
|
+
implements IEntryExitAnimationBuilder
|
|
65
|
+
{
|
|
62
66
|
static createInstance(): BounceInDown {
|
|
63
67
|
return new BounceInDown();
|
|
64
68
|
}
|
|
@@ -76,6 +80,7 @@ export class BounceInDown
|
|
|
76
80
|
const delay = this.getDelay();
|
|
77
81
|
const duration = this.getDuration();
|
|
78
82
|
const callback = this.callbackV;
|
|
83
|
+
const initialValues = this.initialValues;
|
|
79
84
|
|
|
80
85
|
return () => {
|
|
81
86
|
'worklet';
|
|
@@ -101,6 +106,7 @@ export class BounceInDown
|
|
|
101
106
|
translateY: height,
|
|
102
107
|
},
|
|
103
108
|
],
|
|
109
|
+
...initialValues,
|
|
104
110
|
},
|
|
105
111
|
callback: callback,
|
|
106
112
|
};
|
|
@@ -109,8 +115,9 @@ export class BounceInDown
|
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
export class BounceInUp
|
|
112
|
-
extends
|
|
113
|
-
implements IEntryExitAnimationBuilder
|
|
118
|
+
extends ComplexAnimationBuilder
|
|
119
|
+
implements IEntryExitAnimationBuilder
|
|
120
|
+
{
|
|
114
121
|
static createInstance(): BounceInUp {
|
|
115
122
|
return new BounceInUp();
|
|
116
123
|
}
|
|
@@ -128,6 +135,7 @@ export class BounceInUp
|
|
|
128
135
|
const delay = this.getDelay();
|
|
129
136
|
const duration = this.getDuration();
|
|
130
137
|
const callback = this.callbackV;
|
|
138
|
+
const initialValues = this.initialValues;
|
|
131
139
|
|
|
132
140
|
return () => {
|
|
133
141
|
'worklet';
|
|
@@ -149,6 +157,7 @@ export class BounceInUp
|
|
|
149
157
|
},
|
|
150
158
|
initialValues: {
|
|
151
159
|
transform: [{ translateY: -height }],
|
|
160
|
+
...initialValues,
|
|
152
161
|
},
|
|
153
162
|
callback: callback,
|
|
154
163
|
};
|
|
@@ -157,8 +166,9 @@ export class BounceInUp
|
|
|
157
166
|
}
|
|
158
167
|
|
|
159
168
|
export class BounceInLeft
|
|
160
|
-
extends
|
|
161
|
-
implements IEntryExitAnimationBuilder
|
|
169
|
+
extends ComplexAnimationBuilder
|
|
170
|
+
implements IEntryExitAnimationBuilder
|
|
171
|
+
{
|
|
162
172
|
static createInstance(): BounceInLeft {
|
|
163
173
|
return new BounceInLeft();
|
|
164
174
|
}
|
|
@@ -176,6 +186,7 @@ export class BounceInLeft
|
|
|
176
186
|
const delay = this.getDelay();
|
|
177
187
|
const duration = this.getDuration();
|
|
178
188
|
const callback = this.callbackV;
|
|
189
|
+
const initialValues = this.initialValues;
|
|
179
190
|
|
|
180
191
|
return () => {
|
|
181
192
|
'worklet';
|
|
@@ -197,6 +208,7 @@ export class BounceInLeft
|
|
|
197
208
|
},
|
|
198
209
|
initialValues: {
|
|
199
210
|
transform: [{ translateX: -width }],
|
|
211
|
+
...initialValues,
|
|
200
212
|
},
|
|
201
213
|
callback: callback,
|
|
202
214
|
};
|
|
@@ -205,8 +217,9 @@ export class BounceInLeft
|
|
|
205
217
|
}
|
|
206
218
|
|
|
207
219
|
export class BounceInRight
|
|
208
|
-
extends
|
|
209
|
-
implements IEntryExitAnimationBuilder
|
|
220
|
+
extends ComplexAnimationBuilder
|
|
221
|
+
implements IEntryExitAnimationBuilder
|
|
222
|
+
{
|
|
210
223
|
static createInstance(): BounceInRight {
|
|
211
224
|
return new BounceInRight();
|
|
212
225
|
}
|
|
@@ -224,6 +237,7 @@ export class BounceInRight
|
|
|
224
237
|
const delay = this.getDelay();
|
|
225
238
|
const duration = this.getDuration();
|
|
226
239
|
const callback = this.callbackV;
|
|
240
|
+
const initialValues = this.initialValues;
|
|
227
241
|
|
|
228
242
|
return () => {
|
|
229
243
|
'worklet';
|
|
@@ -245,6 +259,7 @@ export class BounceInRight
|
|
|
245
259
|
},
|
|
246
260
|
initialValues: {
|
|
247
261
|
transform: [{ translateX: width }],
|
|
262
|
+
...initialValues,
|
|
248
263
|
},
|
|
249
264
|
callback: callback,
|
|
250
265
|
};
|
|
@@ -253,8 +268,9 @@ export class BounceInRight
|
|
|
253
268
|
}
|
|
254
269
|
|
|
255
270
|
export class BounceOut
|
|
256
|
-
extends
|
|
257
|
-
implements IEntryExitAnimationBuilder
|
|
271
|
+
extends ComplexAnimationBuilder
|
|
272
|
+
implements IEntryExitAnimationBuilder
|
|
273
|
+
{
|
|
258
274
|
static createInstance(): BounceOut {
|
|
259
275
|
return new BounceOut();
|
|
260
276
|
}
|
|
@@ -272,6 +288,7 @@ export class BounceOut
|
|
|
272
288
|
const delay = this.getDelay();
|
|
273
289
|
const duration = this.getDuration();
|
|
274
290
|
const callback = this.callbackV;
|
|
291
|
+
const initialValues = this.initialValues;
|
|
275
292
|
|
|
276
293
|
return () => {
|
|
277
294
|
'worklet';
|
|
@@ -293,6 +310,7 @@ export class BounceOut
|
|
|
293
310
|
},
|
|
294
311
|
initialValues: {
|
|
295
312
|
transform: [{ scale: 1 }],
|
|
313
|
+
...initialValues,
|
|
296
314
|
},
|
|
297
315
|
callback: callback,
|
|
298
316
|
};
|
|
@@ -301,8 +319,9 @@ export class BounceOut
|
|
|
301
319
|
}
|
|
302
320
|
|
|
303
321
|
export class BounceOutDown
|
|
304
|
-
extends
|
|
305
|
-
implements IEntryExitAnimationBuilder
|
|
322
|
+
extends ComplexAnimationBuilder
|
|
323
|
+
implements IEntryExitAnimationBuilder
|
|
324
|
+
{
|
|
306
325
|
static createInstance(): BounceOutDown {
|
|
307
326
|
return new BounceOutDown();
|
|
308
327
|
}
|
|
@@ -320,6 +339,7 @@ export class BounceOutDown
|
|
|
320
339
|
const delay = this.getDelay();
|
|
321
340
|
const duration = this.getDuration();
|
|
322
341
|
const callback = this.callbackV;
|
|
342
|
+
const initialValues = this.initialValues;
|
|
323
343
|
|
|
324
344
|
return () => {
|
|
325
345
|
'worklet';
|
|
@@ -343,6 +363,7 @@ export class BounceOutDown
|
|
|
343
363
|
},
|
|
344
364
|
initialValues: {
|
|
345
365
|
transform: [{ translateY: 0 }],
|
|
366
|
+
...initialValues,
|
|
346
367
|
},
|
|
347
368
|
callback: callback,
|
|
348
369
|
};
|
|
@@ -351,8 +372,9 @@ export class BounceOutDown
|
|
|
351
372
|
}
|
|
352
373
|
|
|
353
374
|
export class BounceOutUp
|
|
354
|
-
extends
|
|
355
|
-
implements IEntryExitAnimationBuilder
|
|
375
|
+
extends ComplexAnimationBuilder
|
|
376
|
+
implements IEntryExitAnimationBuilder
|
|
377
|
+
{
|
|
356
378
|
static createInstance(): BounceOutUp {
|
|
357
379
|
return new BounceOutUp();
|
|
358
380
|
}
|
|
@@ -370,6 +392,7 @@ export class BounceOutUp
|
|
|
370
392
|
const delay = this.getDelay();
|
|
371
393
|
const duration = this.getDuration();
|
|
372
394
|
const callback = this.callbackV;
|
|
395
|
+
const initialValues = this.initialValues;
|
|
373
396
|
|
|
374
397
|
return () => {
|
|
375
398
|
'worklet';
|
|
@@ -393,6 +416,7 @@ export class BounceOutUp
|
|
|
393
416
|
},
|
|
394
417
|
initialValues: {
|
|
395
418
|
transform: [{ translateY: 0 }],
|
|
419
|
+
...initialValues,
|
|
396
420
|
},
|
|
397
421
|
callback: callback,
|
|
398
422
|
};
|
|
@@ -401,8 +425,9 @@ export class BounceOutUp
|
|
|
401
425
|
}
|
|
402
426
|
|
|
403
427
|
export class BounceOutLeft
|
|
404
|
-
extends
|
|
405
|
-
implements IEntryExitAnimationBuilder
|
|
428
|
+
extends ComplexAnimationBuilder
|
|
429
|
+
implements IEntryExitAnimationBuilder
|
|
430
|
+
{
|
|
406
431
|
static createInstance(): BounceOutRight {
|
|
407
432
|
return new BounceOutLeft();
|
|
408
433
|
}
|
|
@@ -420,6 +445,7 @@ export class BounceOutLeft
|
|
|
420
445
|
const delay = this.getDelay();
|
|
421
446
|
const duration = this.getDuration();
|
|
422
447
|
const callback = this.callbackV;
|
|
448
|
+
const initialValues = this.initialValues;
|
|
423
449
|
|
|
424
450
|
return () => {
|
|
425
451
|
'worklet';
|
|
@@ -443,6 +469,7 @@ export class BounceOutLeft
|
|
|
443
469
|
},
|
|
444
470
|
initialValues: {
|
|
445
471
|
transform: [{ translateX: 0 }],
|
|
472
|
+
...initialValues,
|
|
446
473
|
},
|
|
447
474
|
callback: callback,
|
|
448
475
|
};
|
|
@@ -451,8 +478,9 @@ export class BounceOutLeft
|
|
|
451
478
|
}
|
|
452
479
|
|
|
453
480
|
export class BounceOutRight
|
|
454
|
-
extends
|
|
455
|
-
implements IEntryExitAnimationBuilder
|
|
481
|
+
extends ComplexAnimationBuilder
|
|
482
|
+
implements IEntryExitAnimationBuilder
|
|
483
|
+
{
|
|
456
484
|
static createInstance(): BounceOutRight {
|
|
457
485
|
return new BounceOutRight();
|
|
458
486
|
}
|
|
@@ -470,6 +498,7 @@ export class BounceOutRight
|
|
|
470
498
|
const delay = this.getDelay();
|
|
471
499
|
const duration = this.getDuration();
|
|
472
500
|
const callback = this.callbackV;
|
|
501
|
+
const initialValues = this.initialValues;
|
|
473
502
|
|
|
474
503
|
return () => {
|
|
475
504
|
'worklet';
|
|
@@ -493,6 +522,7 @@ export class BounceOutRight
|
|
|
493
522
|
},
|
|
494
523
|
initialValues: {
|
|
495
524
|
transform: [{ translateX: 0 }],
|
|
525
|
+
...initialValues,
|
|
496
526
|
},
|
|
497
527
|
callback: callback,
|
|
498
528
|
};
|
|
@@ -6,7 +6,8 @@ import { ComplexAnimationBuilder } from '../animationBuilder';
|
|
|
6
6
|
|
|
7
7
|
export class FadeIn
|
|
8
8
|
extends ComplexAnimationBuilder
|
|
9
|
-
implements IEntryExitAnimationBuilder
|
|
9
|
+
implements IEntryExitAnimationBuilder
|
|
10
|
+
{
|
|
10
11
|
static createInstance(): FadeIn {
|
|
11
12
|
return new FadeIn();
|
|
12
13
|
}
|
|
@@ -15,6 +16,7 @@ export class FadeIn
|
|
|
15
16
|
const delayFunction = this.getDelayFunction();
|
|
16
17
|
const [animation, config] = this.getAnimationAndConfig();
|
|
17
18
|
const callback = this.callbackV;
|
|
19
|
+
const initialValues = this.initialValues;
|
|
18
20
|
const delay = this.getDelay();
|
|
19
21
|
|
|
20
22
|
return (_) => {
|
|
@@ -25,6 +27,7 @@ export class FadeIn
|
|
|
25
27
|
},
|
|
26
28
|
initialValues: {
|
|
27
29
|
opacity: 0,
|
|
30
|
+
...initialValues,
|
|
28
31
|
},
|
|
29
32
|
callback: callback,
|
|
30
33
|
};
|
|
@@ -34,7 +37,8 @@ export class FadeIn
|
|
|
34
37
|
|
|
35
38
|
export class FadeInRight
|
|
36
39
|
extends ComplexAnimationBuilder
|
|
37
|
-
implements IEntryExitAnimationBuilder
|
|
40
|
+
implements IEntryExitAnimationBuilder
|
|
41
|
+
{
|
|
38
42
|
static createInstance(): FadeInRight {
|
|
39
43
|
return new FadeInRight();
|
|
40
44
|
}
|
|
@@ -43,6 +47,7 @@ export class FadeInRight
|
|
|
43
47
|
const delayFunction = this.getDelayFunction();
|
|
44
48
|
const [animation, config] = this.getAnimationAndConfig();
|
|
45
49
|
const callback = this.callbackV;
|
|
50
|
+
const initialValues = this.initialValues;
|
|
46
51
|
const delay = this.getDelay();
|
|
47
52
|
|
|
48
53
|
return () => {
|
|
@@ -57,6 +62,7 @@ export class FadeInRight
|
|
|
57
62
|
initialValues: {
|
|
58
63
|
opacity: 0,
|
|
59
64
|
transform: [{ translateX: 25 }],
|
|
65
|
+
...initialValues,
|
|
60
66
|
},
|
|
61
67
|
callback: callback,
|
|
62
68
|
};
|
|
@@ -66,7 +72,8 @@ export class FadeInRight
|
|
|
66
72
|
|
|
67
73
|
export class FadeInLeft
|
|
68
74
|
extends ComplexAnimationBuilder
|
|
69
|
-
implements IEntryExitAnimationBuilder
|
|
75
|
+
implements IEntryExitAnimationBuilder
|
|
76
|
+
{
|
|
70
77
|
static createInstance(): FadeInLeft {
|
|
71
78
|
return new FadeInLeft();
|
|
72
79
|
}
|
|
@@ -75,6 +82,7 @@ export class FadeInLeft
|
|
|
75
82
|
const delayFunction = this.getDelayFunction();
|
|
76
83
|
const [animation, config] = this.getAnimationAndConfig();
|
|
77
84
|
const callback = this.callbackV;
|
|
85
|
+
const initialValues = this.initialValues;
|
|
78
86
|
const delay = this.getDelay();
|
|
79
87
|
|
|
80
88
|
return () => {
|
|
@@ -89,6 +97,7 @@ export class FadeInLeft
|
|
|
89
97
|
initialValues: {
|
|
90
98
|
opacity: 0,
|
|
91
99
|
transform: [{ translateX: -25 }],
|
|
100
|
+
...initialValues,
|
|
92
101
|
},
|
|
93
102
|
callback: callback,
|
|
94
103
|
};
|
|
@@ -98,7 +107,8 @@ export class FadeInLeft
|
|
|
98
107
|
|
|
99
108
|
export class FadeInUp
|
|
100
109
|
extends ComplexAnimationBuilder
|
|
101
|
-
implements IEntryExitAnimationBuilder
|
|
110
|
+
implements IEntryExitAnimationBuilder
|
|
111
|
+
{
|
|
102
112
|
static createInstance(): FadeInUp {
|
|
103
113
|
return new FadeInUp();
|
|
104
114
|
}
|
|
@@ -107,6 +117,7 @@ export class FadeInUp
|
|
|
107
117
|
const delayFunction = this.getDelayFunction();
|
|
108
118
|
const [animation, config] = this.getAnimationAndConfig();
|
|
109
119
|
const callback = this.callbackV;
|
|
120
|
+
const initialValues = this.initialValues;
|
|
110
121
|
const delay = this.getDelay();
|
|
111
122
|
|
|
112
123
|
return () => {
|
|
@@ -121,6 +132,7 @@ export class FadeInUp
|
|
|
121
132
|
initialValues: {
|
|
122
133
|
opacity: 0,
|
|
123
134
|
transform: [{ translateY: -25 }],
|
|
135
|
+
...initialValues,
|
|
124
136
|
},
|
|
125
137
|
callback: callback,
|
|
126
138
|
};
|
|
@@ -130,7 +142,8 @@ export class FadeInUp
|
|
|
130
142
|
|
|
131
143
|
export class FadeInDown
|
|
132
144
|
extends ComplexAnimationBuilder
|
|
133
|
-
implements IEntryExitAnimationBuilder
|
|
145
|
+
implements IEntryExitAnimationBuilder
|
|
146
|
+
{
|
|
134
147
|
static createInstance(): FadeInDown {
|
|
135
148
|
return new FadeInDown();
|
|
136
149
|
}
|
|
@@ -139,6 +152,7 @@ export class FadeInDown
|
|
|
139
152
|
const delayFunction = this.getDelayFunction();
|
|
140
153
|
const [animation, config] = this.getAnimationAndConfig();
|
|
141
154
|
const callback = this.callbackV;
|
|
155
|
+
const initialValues = this.initialValues;
|
|
142
156
|
const delay = this.getDelay();
|
|
143
157
|
|
|
144
158
|
return () => {
|
|
@@ -153,6 +167,7 @@ export class FadeInDown
|
|
|
153
167
|
initialValues: {
|
|
154
168
|
opacity: 0,
|
|
155
169
|
transform: [{ translateY: 25 }],
|
|
170
|
+
...initialValues,
|
|
156
171
|
},
|
|
157
172
|
callback: callback,
|
|
158
173
|
};
|
|
@@ -162,7 +177,8 @@ export class FadeInDown
|
|
|
162
177
|
|
|
163
178
|
export class FadeOut
|
|
164
179
|
extends ComplexAnimationBuilder
|
|
165
|
-
implements IEntryExitAnimationBuilder
|
|
180
|
+
implements IEntryExitAnimationBuilder
|
|
181
|
+
{
|
|
166
182
|
static createInstance(): FadeOut {
|
|
167
183
|
return new FadeOut();
|
|
168
184
|
}
|
|
@@ -171,6 +187,7 @@ export class FadeOut
|
|
|
171
187
|
const delayFunction = this.getDelayFunction();
|
|
172
188
|
const [animation, config] = this.getAnimationAndConfig();
|
|
173
189
|
const callback = this.callbackV;
|
|
190
|
+
const initialValues = this.initialValues;
|
|
174
191
|
const delay = this.getDelay();
|
|
175
192
|
|
|
176
193
|
return (_) => {
|
|
@@ -181,6 +198,7 @@ export class FadeOut
|
|
|
181
198
|
},
|
|
182
199
|
initialValues: {
|
|
183
200
|
opacity: 1,
|
|
201
|
+
...initialValues,
|
|
184
202
|
},
|
|
185
203
|
callback: callback,
|
|
186
204
|
};
|
|
@@ -190,7 +208,8 @@ export class FadeOut
|
|
|
190
208
|
|
|
191
209
|
export class FadeOutRight
|
|
192
210
|
extends ComplexAnimationBuilder
|
|
193
|
-
implements IEntryExitAnimationBuilder
|
|
211
|
+
implements IEntryExitAnimationBuilder
|
|
212
|
+
{
|
|
194
213
|
static createInstance(): FadeOutRight {
|
|
195
214
|
return new FadeOutRight();
|
|
196
215
|
}
|
|
@@ -199,6 +218,7 @@ export class FadeOutRight
|
|
|
199
218
|
const delayFunction = this.getDelayFunction();
|
|
200
219
|
const [animation, config] = this.getAnimationAndConfig();
|
|
201
220
|
const callback = this.callbackV;
|
|
221
|
+
const initialValues = this.initialValues;
|
|
202
222
|
const delay = this.getDelay();
|
|
203
223
|
|
|
204
224
|
return () => {
|
|
@@ -213,6 +233,7 @@ export class FadeOutRight
|
|
|
213
233
|
initialValues: {
|
|
214
234
|
opacity: 1,
|
|
215
235
|
transform: [{ translateX: 0 }],
|
|
236
|
+
...initialValues,
|
|
216
237
|
},
|
|
217
238
|
callback: callback,
|
|
218
239
|
};
|
|
@@ -222,7 +243,8 @@ export class FadeOutRight
|
|
|
222
243
|
|
|
223
244
|
export class FadeOutLeft
|
|
224
245
|
extends ComplexAnimationBuilder
|
|
225
|
-
implements IEntryExitAnimationBuilder
|
|
246
|
+
implements IEntryExitAnimationBuilder
|
|
247
|
+
{
|
|
226
248
|
static createInstance(): FadeOutLeft {
|
|
227
249
|
return new FadeOutLeft();
|
|
228
250
|
}
|
|
@@ -231,6 +253,7 @@ export class FadeOutLeft
|
|
|
231
253
|
const delayFunction = this.getDelayFunction();
|
|
232
254
|
const [animation, config] = this.getAnimationAndConfig();
|
|
233
255
|
const callback = this.callbackV;
|
|
256
|
+
const initialValues = this.initialValues;
|
|
234
257
|
const delay = this.getDelay();
|
|
235
258
|
|
|
236
259
|
return () => {
|
|
@@ -245,6 +268,7 @@ export class FadeOutLeft
|
|
|
245
268
|
initialValues: {
|
|
246
269
|
opacity: 1,
|
|
247
270
|
transform: [{ translateX: 0 }],
|
|
271
|
+
...initialValues,
|
|
248
272
|
},
|
|
249
273
|
callback: callback,
|
|
250
274
|
};
|
|
@@ -254,7 +278,8 @@ export class FadeOutLeft
|
|
|
254
278
|
|
|
255
279
|
export class FadeOutUp
|
|
256
280
|
extends ComplexAnimationBuilder
|
|
257
|
-
implements IEntryExitAnimationBuilder
|
|
281
|
+
implements IEntryExitAnimationBuilder
|
|
282
|
+
{
|
|
258
283
|
static createInstance(): FadeOutUp {
|
|
259
284
|
return new FadeOutUp();
|
|
260
285
|
}
|
|
@@ -263,6 +288,7 @@ export class FadeOutUp
|
|
|
263
288
|
const delayFunction = this.getDelayFunction();
|
|
264
289
|
const [animation, config] = this.getAnimationAndConfig();
|
|
265
290
|
const callback = this.callbackV;
|
|
291
|
+
const initialValues = this.initialValues;
|
|
266
292
|
const delay = this.getDelay();
|
|
267
293
|
|
|
268
294
|
return () => {
|
|
@@ -277,6 +303,7 @@ export class FadeOutUp
|
|
|
277
303
|
initialValues: {
|
|
278
304
|
opacity: 1,
|
|
279
305
|
transform: [{ translateY: 0 }],
|
|
306
|
+
...initialValues,
|
|
280
307
|
},
|
|
281
308
|
callback: callback,
|
|
282
309
|
};
|
|
@@ -286,7 +313,8 @@ export class FadeOutUp
|
|
|
286
313
|
|
|
287
314
|
export class FadeOutDown
|
|
288
315
|
extends ComplexAnimationBuilder
|
|
289
|
-
implements IEntryExitAnimationBuilder
|
|
316
|
+
implements IEntryExitAnimationBuilder
|
|
317
|
+
{
|
|
290
318
|
static createInstance(): FadeOutDown {
|
|
291
319
|
return new FadeOutDown();
|
|
292
320
|
}
|
|
@@ -295,6 +323,7 @@ export class FadeOutDown
|
|
|
295
323
|
const delayFunction = this.getDelayFunction();
|
|
296
324
|
const [animation, config] = this.getAnimationAndConfig();
|
|
297
325
|
const callback = this.callbackV;
|
|
326
|
+
const initialValues = this.initialValues;
|
|
298
327
|
const delay = this.getDelay();
|
|
299
328
|
|
|
300
329
|
return () => {
|
|
@@ -309,6 +338,7 @@ export class FadeOutDown
|
|
|
309
338
|
initialValues: {
|
|
310
339
|
opacity: 1,
|
|
311
340
|
transform: [{ translateY: 0 }],
|
|
341
|
+
...initialValues,
|
|
312
342
|
},
|
|
313
343
|
callback: callback,
|
|
314
344
|
};
|