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
|
@@ -11,7 +11,8 @@ import { ComplexAnimationBuilder } from '../animationBuilder';
|
|
|
11
11
|
|
|
12
12
|
export class FlipInXUp
|
|
13
13
|
extends ComplexAnimationBuilder
|
|
14
|
-
implements IEntryAnimationBuilder
|
|
14
|
+
implements IEntryAnimationBuilder
|
|
15
|
+
{
|
|
15
16
|
static createInstance(): FlipInXUp {
|
|
16
17
|
return new FlipInXUp();
|
|
17
18
|
}
|
|
@@ -21,6 +22,7 @@ export class FlipInXUp
|
|
|
21
22
|
const [animation, config] = this.getAnimationAndConfig();
|
|
22
23
|
const delay = this.getDelay();
|
|
23
24
|
const callback = this.callbackV;
|
|
25
|
+
const initialValues = this.initialValues;
|
|
24
26
|
|
|
25
27
|
return (targetValues) => {
|
|
26
28
|
'worklet';
|
|
@@ -31,6 +33,7 @@ export class FlipInXUp
|
|
|
31
33
|
{ rotateX: '90deg' },
|
|
32
34
|
{ translateY: -targetValues.targetHeight },
|
|
33
35
|
],
|
|
36
|
+
...initialValues,
|
|
34
37
|
},
|
|
35
38
|
animations: {
|
|
36
39
|
transform: [
|
|
@@ -47,7 +50,8 @@ export class FlipInXUp
|
|
|
47
50
|
|
|
48
51
|
export class FlipInYLeft
|
|
49
52
|
extends ComplexAnimationBuilder
|
|
50
|
-
implements IEntryAnimationBuilder
|
|
53
|
+
implements IEntryAnimationBuilder
|
|
54
|
+
{
|
|
51
55
|
static createInstance(): FlipInYLeft {
|
|
52
56
|
return new FlipInYLeft();
|
|
53
57
|
}
|
|
@@ -57,6 +61,7 @@ export class FlipInYLeft
|
|
|
57
61
|
const [animation, config] = this.getAnimationAndConfig();
|
|
58
62
|
const delay = this.getDelay();
|
|
59
63
|
const callback = this.callbackV;
|
|
64
|
+
const initialValues = this.initialValues;
|
|
60
65
|
|
|
61
66
|
return (targetValues) => {
|
|
62
67
|
'worklet';
|
|
@@ -67,6 +72,7 @@ export class FlipInYLeft
|
|
|
67
72
|
{ rotateY: '-90deg' },
|
|
68
73
|
{ translateX: -targetValues.targetWidth },
|
|
69
74
|
],
|
|
75
|
+
...initialValues,
|
|
70
76
|
},
|
|
71
77
|
animations: {
|
|
72
78
|
transform: [
|
|
@@ -83,7 +89,8 @@ export class FlipInYLeft
|
|
|
83
89
|
|
|
84
90
|
export class FlipInXDown
|
|
85
91
|
extends ComplexAnimationBuilder
|
|
86
|
-
implements IEntryAnimationBuilder
|
|
92
|
+
implements IEntryAnimationBuilder
|
|
93
|
+
{
|
|
87
94
|
static createInstance(): FlipInXDown {
|
|
88
95
|
return new FlipInXDown();
|
|
89
96
|
}
|
|
@@ -93,6 +100,7 @@ export class FlipInXDown
|
|
|
93
100
|
const [animation, config] = this.getAnimationAndConfig();
|
|
94
101
|
const delay = this.getDelay();
|
|
95
102
|
const callback = this.callbackV;
|
|
103
|
+
const initialValues = this.initialValues;
|
|
96
104
|
|
|
97
105
|
return (targetValues) => {
|
|
98
106
|
'worklet';
|
|
@@ -103,6 +111,7 @@ export class FlipInXDown
|
|
|
103
111
|
{ rotateX: '-90deg' },
|
|
104
112
|
{ translateY: targetValues.targetHeight },
|
|
105
113
|
],
|
|
114
|
+
...initialValues,
|
|
106
115
|
},
|
|
107
116
|
animations: {
|
|
108
117
|
transform: [
|
|
@@ -119,7 +128,8 @@ export class FlipInXDown
|
|
|
119
128
|
|
|
120
129
|
export class FlipInYRight
|
|
121
130
|
extends ComplexAnimationBuilder
|
|
122
|
-
implements IEntryAnimationBuilder
|
|
131
|
+
implements IEntryAnimationBuilder
|
|
132
|
+
{
|
|
123
133
|
static createInstance(): FlipInYRight {
|
|
124
134
|
return new FlipInYRight();
|
|
125
135
|
}
|
|
@@ -129,6 +139,7 @@ export class FlipInYRight
|
|
|
129
139
|
const [animation, config] = this.getAnimationAndConfig();
|
|
130
140
|
const delay = this.getDelay();
|
|
131
141
|
const callback = this.callbackV;
|
|
142
|
+
const initialValues = this.initialValues;
|
|
132
143
|
|
|
133
144
|
return (targetValues) => {
|
|
134
145
|
'worklet';
|
|
@@ -139,6 +150,7 @@ export class FlipInYRight
|
|
|
139
150
|
{ rotateY: '90deg' },
|
|
140
151
|
{ translateX: targetValues.targetWidth },
|
|
141
152
|
],
|
|
153
|
+
...initialValues,
|
|
142
154
|
},
|
|
143
155
|
animations: {
|
|
144
156
|
transform: [
|
|
@@ -155,7 +167,8 @@ export class FlipInYRight
|
|
|
155
167
|
|
|
156
168
|
export class FlipInEasyX
|
|
157
169
|
extends ComplexAnimationBuilder
|
|
158
|
-
implements IEntryExitAnimationBuilder
|
|
170
|
+
implements IEntryExitAnimationBuilder
|
|
171
|
+
{
|
|
159
172
|
static createInstance(): FlipInEasyX {
|
|
160
173
|
return new FlipInEasyX();
|
|
161
174
|
}
|
|
@@ -165,12 +178,14 @@ export class FlipInEasyX
|
|
|
165
178
|
const [animation, config] = this.getAnimationAndConfig();
|
|
166
179
|
const delay = this.getDelay();
|
|
167
180
|
const callback = this.callbackV;
|
|
181
|
+
const initialValues = this.initialValues;
|
|
168
182
|
|
|
169
183
|
return () => {
|
|
170
184
|
'worklet';
|
|
171
185
|
return {
|
|
172
186
|
initialValues: {
|
|
173
187
|
transform: [{ perspective: 500 }, { rotateX: '90deg' }],
|
|
188
|
+
...initialValues,
|
|
174
189
|
},
|
|
175
190
|
animations: {
|
|
176
191
|
transform: [
|
|
@@ -186,7 +201,8 @@ export class FlipInEasyX
|
|
|
186
201
|
|
|
187
202
|
export class FlipInEasyY
|
|
188
203
|
extends ComplexAnimationBuilder
|
|
189
|
-
implements IEntryExitAnimationBuilder
|
|
204
|
+
implements IEntryExitAnimationBuilder
|
|
205
|
+
{
|
|
190
206
|
static createInstance(): FlipInEasyY {
|
|
191
207
|
return new FlipInEasyY();
|
|
192
208
|
}
|
|
@@ -196,12 +212,14 @@ export class FlipInEasyY
|
|
|
196
212
|
const [animation, config] = this.getAnimationAndConfig();
|
|
197
213
|
const delay = this.getDelay();
|
|
198
214
|
const callback = this.callbackV;
|
|
215
|
+
const initialValues = this.initialValues;
|
|
199
216
|
|
|
200
217
|
return () => {
|
|
201
218
|
'worklet';
|
|
202
219
|
return {
|
|
203
220
|
initialValues: {
|
|
204
221
|
transform: [{ perspective: 500 }, { rotateY: '90deg' }],
|
|
222
|
+
...initialValues,
|
|
205
223
|
},
|
|
206
224
|
animations: {
|
|
207
225
|
transform: [
|
|
@@ -217,7 +235,8 @@ export class FlipInEasyY
|
|
|
217
235
|
|
|
218
236
|
export class FlipOutXUp
|
|
219
237
|
extends ComplexAnimationBuilder
|
|
220
|
-
implements IExitAnimationBuilder
|
|
238
|
+
implements IExitAnimationBuilder
|
|
239
|
+
{
|
|
221
240
|
static createInstance(): FlipOutXUp {
|
|
222
241
|
return new FlipOutXUp();
|
|
223
242
|
}
|
|
@@ -227,6 +246,7 @@ export class FlipOutXUp
|
|
|
227
246
|
const [animation, config] = this.getAnimationAndConfig();
|
|
228
247
|
const delay = this.getDelay();
|
|
229
248
|
const callback = this.callbackV;
|
|
249
|
+
const initialValues = this.initialValues;
|
|
230
250
|
|
|
231
251
|
return (targetValues) => {
|
|
232
252
|
'worklet';
|
|
@@ -237,6 +257,7 @@ export class FlipOutXUp
|
|
|
237
257
|
{ rotateX: '0deg' },
|
|
238
258
|
{ translateY: 0 },
|
|
239
259
|
],
|
|
260
|
+
...initialValues,
|
|
240
261
|
},
|
|
241
262
|
animations: {
|
|
242
263
|
transform: [
|
|
@@ -258,7 +279,8 @@ export class FlipOutXUp
|
|
|
258
279
|
|
|
259
280
|
export class FlipOutYLeft
|
|
260
281
|
extends ComplexAnimationBuilder
|
|
261
|
-
implements IExitAnimationBuilder
|
|
282
|
+
implements IExitAnimationBuilder
|
|
283
|
+
{
|
|
262
284
|
static createInstance(): FlipOutYLeft {
|
|
263
285
|
return new FlipOutYLeft();
|
|
264
286
|
}
|
|
@@ -268,6 +290,7 @@ export class FlipOutYLeft
|
|
|
268
290
|
const [animation, config] = this.getAnimationAndConfig();
|
|
269
291
|
const delay = this.getDelay();
|
|
270
292
|
const callback = this.callbackV;
|
|
293
|
+
const initialValues = this.initialValues;
|
|
271
294
|
|
|
272
295
|
return (targetValues) => {
|
|
273
296
|
'worklet';
|
|
@@ -278,6 +301,7 @@ export class FlipOutYLeft
|
|
|
278
301
|
{ rotateY: '0deg' },
|
|
279
302
|
{ translateX: 0 },
|
|
280
303
|
],
|
|
304
|
+
...initialValues,
|
|
281
305
|
},
|
|
282
306
|
animations: {
|
|
283
307
|
transform: [
|
|
@@ -299,7 +323,8 @@ export class FlipOutYLeft
|
|
|
299
323
|
|
|
300
324
|
export class FlipOutXDown
|
|
301
325
|
extends ComplexAnimationBuilder
|
|
302
|
-
implements IExitAnimationBuilder
|
|
326
|
+
implements IExitAnimationBuilder
|
|
327
|
+
{
|
|
303
328
|
static createInstance(): FlipOutXDown {
|
|
304
329
|
return new FlipOutXDown();
|
|
305
330
|
}
|
|
@@ -309,6 +334,7 @@ export class FlipOutXDown
|
|
|
309
334
|
const [animation, config] = this.getAnimationAndConfig();
|
|
310
335
|
const delay = this.getDelay();
|
|
311
336
|
const callback = this.callbackV;
|
|
337
|
+
const initialValues = this.initialValues;
|
|
312
338
|
|
|
313
339
|
return (targetValues) => {
|
|
314
340
|
'worklet';
|
|
@@ -319,6 +345,7 @@ export class FlipOutXDown
|
|
|
319
345
|
{ rotateX: '0deg' },
|
|
320
346
|
{ translateY: 0 },
|
|
321
347
|
],
|
|
348
|
+
...initialValues,
|
|
322
349
|
},
|
|
323
350
|
animations: {
|
|
324
351
|
transform: [
|
|
@@ -340,7 +367,8 @@ export class FlipOutXDown
|
|
|
340
367
|
|
|
341
368
|
export class FlipOutYRight
|
|
342
369
|
extends ComplexAnimationBuilder
|
|
343
|
-
implements IExitAnimationBuilder
|
|
370
|
+
implements IExitAnimationBuilder
|
|
371
|
+
{
|
|
344
372
|
static createInstance(): FlipOutYRight {
|
|
345
373
|
return new FlipOutYRight();
|
|
346
374
|
}
|
|
@@ -350,6 +378,7 @@ export class FlipOutYRight
|
|
|
350
378
|
const [animation, config] = this.getAnimationAndConfig();
|
|
351
379
|
const delay = this.getDelay();
|
|
352
380
|
const callback = this.callbackV;
|
|
381
|
+
const initialValues = this.initialValues;
|
|
353
382
|
|
|
354
383
|
return (targetValues) => {
|
|
355
384
|
'worklet';
|
|
@@ -360,6 +389,7 @@ export class FlipOutYRight
|
|
|
360
389
|
{ rotateY: '0deg' },
|
|
361
390
|
{ translateX: 0 },
|
|
362
391
|
],
|
|
392
|
+
...initialValues,
|
|
363
393
|
},
|
|
364
394
|
animations: {
|
|
365
395
|
transform: [
|
|
@@ -381,7 +411,8 @@ export class FlipOutYRight
|
|
|
381
411
|
|
|
382
412
|
export class FlipOutEasyX
|
|
383
413
|
extends ComplexAnimationBuilder
|
|
384
|
-
implements IEntryExitAnimationBuilder
|
|
414
|
+
implements IEntryExitAnimationBuilder
|
|
415
|
+
{
|
|
385
416
|
static createInstance(): FlipOutEasyX {
|
|
386
417
|
return new FlipOutEasyX();
|
|
387
418
|
}
|
|
@@ -391,12 +422,14 @@ export class FlipOutEasyX
|
|
|
391
422
|
const [animation, config] = this.getAnimationAndConfig();
|
|
392
423
|
const delay = this.getDelay();
|
|
393
424
|
const callback = this.callbackV;
|
|
425
|
+
const initialValues = this.initialValues;
|
|
394
426
|
|
|
395
427
|
return () => {
|
|
396
428
|
'worklet';
|
|
397
429
|
return {
|
|
398
430
|
initialValues: {
|
|
399
431
|
transform: [{ perspective: 500 }, { rotateX: '0deg' }],
|
|
432
|
+
...initialValues,
|
|
400
433
|
},
|
|
401
434
|
animations: {
|
|
402
435
|
transform: [
|
|
@@ -412,7 +445,8 @@ export class FlipOutEasyX
|
|
|
412
445
|
|
|
413
446
|
export class FlipOutEasyY
|
|
414
447
|
extends ComplexAnimationBuilder
|
|
415
|
-
implements IEntryExitAnimationBuilder
|
|
448
|
+
implements IEntryExitAnimationBuilder
|
|
449
|
+
{
|
|
416
450
|
static createInstance(): FlipOutEasyY {
|
|
417
451
|
return new FlipOutEasyY();
|
|
418
452
|
}
|
|
@@ -422,12 +456,14 @@ export class FlipOutEasyY
|
|
|
422
456
|
const [animation, config] = this.getAnimationAndConfig();
|
|
423
457
|
const delay = this.getDelay();
|
|
424
458
|
const callback = this.callbackV;
|
|
459
|
+
const initialValues = this.initialValues;
|
|
425
460
|
|
|
426
461
|
return () => {
|
|
427
462
|
'worklet';
|
|
428
463
|
return {
|
|
429
464
|
initialValues: {
|
|
430
465
|
transform: [{ perspective: 500 }, { rotateY: '0deg' }],
|
|
466
|
+
...initialValues,
|
|
431
467
|
},
|
|
432
468
|
animations: {
|
|
433
469
|
transform: [
|
|
@@ -10,7 +10,8 @@ const { width } = Dimensions.get('window');
|
|
|
10
10
|
|
|
11
11
|
export class LightSpeedInRight
|
|
12
12
|
extends ComplexAnimationBuilder
|
|
13
|
-
implements IEntryExitAnimationBuilder
|
|
13
|
+
implements IEntryExitAnimationBuilder
|
|
14
|
+
{
|
|
14
15
|
static createInstance(): LightSpeedInRight {
|
|
15
16
|
return new LightSpeedInRight();
|
|
16
17
|
}
|
|
@@ -21,6 +22,7 @@ export class LightSpeedInRight
|
|
|
21
22
|
const delay = this.getDelay();
|
|
22
23
|
const duration = this.getDuration();
|
|
23
24
|
const callback = this.callbackV;
|
|
25
|
+
const initialValues = this.initialValues;
|
|
24
26
|
|
|
25
27
|
return () => {
|
|
26
28
|
'worklet';
|
|
@@ -49,6 +51,7 @@ export class LightSpeedInRight
|
|
|
49
51
|
initialValues: {
|
|
50
52
|
opacity: 0,
|
|
51
53
|
transform: [{ translateX: width }, { skewX: '-45deg' }],
|
|
54
|
+
...initialValues,
|
|
52
55
|
},
|
|
53
56
|
callback: callback,
|
|
54
57
|
};
|
|
@@ -58,7 +61,8 @@ export class LightSpeedInRight
|
|
|
58
61
|
|
|
59
62
|
export class LightSpeedInLeft
|
|
60
63
|
extends ComplexAnimationBuilder
|
|
61
|
-
implements IEntryExitAnimationBuilder
|
|
64
|
+
implements IEntryExitAnimationBuilder
|
|
65
|
+
{
|
|
62
66
|
static createInstance(): LightSpeedInLeft {
|
|
63
67
|
return new LightSpeedInLeft();
|
|
64
68
|
}
|
|
@@ -69,6 +73,7 @@ export class LightSpeedInLeft
|
|
|
69
73
|
const delay = this.getDelay();
|
|
70
74
|
const duration = this.getDuration();
|
|
71
75
|
const callback = this.callbackV;
|
|
76
|
+
const initialValues = this.initialValues;
|
|
72
77
|
|
|
73
78
|
return () => {
|
|
74
79
|
'worklet';
|
|
@@ -97,6 +102,7 @@ export class LightSpeedInLeft
|
|
|
97
102
|
initialValues: {
|
|
98
103
|
opacity: 0,
|
|
99
104
|
transform: [{ translateX: -width }, { skewX: '45deg' }],
|
|
105
|
+
...initialValues,
|
|
100
106
|
},
|
|
101
107
|
callback: callback,
|
|
102
108
|
};
|
|
@@ -106,7 +112,8 @@ export class LightSpeedInLeft
|
|
|
106
112
|
|
|
107
113
|
export class LightSpeedOutRight
|
|
108
114
|
extends ComplexAnimationBuilder
|
|
109
|
-
implements IEntryExitAnimationBuilder
|
|
115
|
+
implements IEntryExitAnimationBuilder
|
|
116
|
+
{
|
|
110
117
|
static createInstance(): LightSpeedOutRight {
|
|
111
118
|
return new LightSpeedOutRight();
|
|
112
119
|
}
|
|
@@ -116,6 +123,7 @@ export class LightSpeedOutRight
|
|
|
116
123
|
const [animation, config] = this.getAnimationAndConfig();
|
|
117
124
|
const delay = this.getDelay();
|
|
118
125
|
const callback = this.callbackV;
|
|
126
|
+
const initialValues = this.initialValues;
|
|
119
127
|
|
|
120
128
|
return () => {
|
|
121
129
|
'worklet';
|
|
@@ -134,6 +142,7 @@ export class LightSpeedOutRight
|
|
|
134
142
|
initialValues: {
|
|
135
143
|
opacity: 1,
|
|
136
144
|
transform: [{ translateX: 0 }, { skewX: '0deg' }],
|
|
145
|
+
...initialValues,
|
|
137
146
|
},
|
|
138
147
|
callback: callback,
|
|
139
148
|
};
|
|
@@ -143,7 +152,8 @@ export class LightSpeedOutRight
|
|
|
143
152
|
|
|
144
153
|
export class LightSpeedOutLeft
|
|
145
154
|
extends ComplexAnimationBuilder
|
|
146
|
-
implements IEntryExitAnimationBuilder
|
|
155
|
+
implements IEntryExitAnimationBuilder
|
|
156
|
+
{
|
|
147
157
|
static createInstance(): LightSpeedOutLeft {
|
|
148
158
|
return new LightSpeedOutLeft();
|
|
149
159
|
}
|
|
@@ -153,6 +163,7 @@ export class LightSpeedOutLeft
|
|
|
153
163
|
const [animation, config] = this.getAnimationAndConfig();
|
|
154
164
|
const delay = this.getDelay();
|
|
155
165
|
const callback = this.callbackV;
|
|
166
|
+
const initialValues = this.initialValues;
|
|
156
167
|
|
|
157
168
|
return () => {
|
|
158
169
|
'worklet';
|
|
@@ -171,6 +182,7 @@ export class LightSpeedOutLeft
|
|
|
171
182
|
initialValues: {
|
|
172
183
|
opacity: 1,
|
|
173
184
|
transform: [{ translateX: 0 }, { skewX: '0deg' }],
|
|
185
|
+
...initialValues,
|
|
174
186
|
},
|
|
175
187
|
callback: callback,
|
|
176
188
|
};
|
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
|
|
7
7
|
export class PinwheelIn
|
|
8
8
|
extends ComplexAnimationBuilder
|
|
9
|
-
implements IEntryExitAnimationBuilder
|
|
9
|
+
implements IEntryExitAnimationBuilder
|
|
10
|
+
{
|
|
10
11
|
static createInstance(): PinwheelIn {
|
|
11
12
|
return new PinwheelIn();
|
|
12
13
|
}
|
|
@@ -16,6 +17,7 @@ export class PinwheelIn
|
|
|
16
17
|
const [animation, config] = this.getAnimationAndConfig();
|
|
17
18
|
const delay = this.getDelay();
|
|
18
19
|
const callback = this.callbackV;
|
|
20
|
+
const initialValues = this.initialValues;
|
|
19
21
|
|
|
20
22
|
return (_values) => {
|
|
21
23
|
'worklet';
|
|
@@ -41,6 +43,7 @@ export class PinwheelIn
|
|
|
41
43
|
rotate: '5',
|
|
42
44
|
},
|
|
43
45
|
],
|
|
46
|
+
...initialValues,
|
|
44
47
|
},
|
|
45
48
|
callback: callback,
|
|
46
49
|
};
|
|
@@ -50,7 +53,8 @@ export class PinwheelIn
|
|
|
50
53
|
|
|
51
54
|
export class PinwheelOut
|
|
52
55
|
extends ComplexAnimationBuilder
|
|
53
|
-
implements IEntryExitAnimationBuilder
|
|
56
|
+
implements IEntryExitAnimationBuilder
|
|
57
|
+
{
|
|
54
58
|
static createInstance(): PinwheelOut {
|
|
55
59
|
return new PinwheelOut();
|
|
56
60
|
}
|
|
@@ -60,6 +64,7 @@ export class PinwheelOut
|
|
|
60
64
|
const [animation, config] = this.getAnimationAndConfig();
|
|
61
65
|
const delay = this.getDelay();
|
|
62
66
|
const callback = this.callbackV;
|
|
67
|
+
const initialValues = this.initialValues;
|
|
63
68
|
|
|
64
69
|
return (_values) => {
|
|
65
70
|
'worklet';
|
|
@@ -85,6 +90,7 @@ export class PinwheelOut
|
|
|
85
90
|
rotate: '0',
|
|
86
91
|
},
|
|
87
92
|
],
|
|
93
|
+
...initialValues,
|
|
88
94
|
},
|
|
89
95
|
callback: callback,
|
|
90
96
|
};
|
|
@@ -9,7 +9,8 @@ const { width } = Dimensions.get('window');
|
|
|
9
9
|
|
|
10
10
|
export class RollInLeft
|
|
11
11
|
extends ComplexAnimationBuilder
|
|
12
|
-
implements IEntryExitAnimationBuilder
|
|
12
|
+
implements IEntryExitAnimationBuilder
|
|
13
|
+
{
|
|
13
14
|
static createInstance(): RollInLeft {
|
|
14
15
|
return new RollInLeft();
|
|
15
16
|
}
|
|
@@ -19,6 +20,7 @@ export class RollInLeft
|
|
|
19
20
|
const [animation, config] = this.getAnimationAndConfig();
|
|
20
21
|
const delay = this.getDelay();
|
|
21
22
|
const callback = this.callbackV;
|
|
23
|
+
const initialValues = this.initialValues;
|
|
22
24
|
|
|
23
25
|
return () => {
|
|
24
26
|
'worklet';
|
|
@@ -31,6 +33,7 @@ export class RollInLeft
|
|
|
31
33
|
},
|
|
32
34
|
initialValues: {
|
|
33
35
|
transform: [{ translateX: -width }, { rotate: '-180deg' }],
|
|
36
|
+
...initialValues,
|
|
34
37
|
},
|
|
35
38
|
callback: callback,
|
|
36
39
|
};
|
|
@@ -40,7 +43,8 @@ export class RollInLeft
|
|
|
40
43
|
|
|
41
44
|
export class RollInRight
|
|
42
45
|
extends ComplexAnimationBuilder
|
|
43
|
-
implements IEntryExitAnimationBuilder
|
|
46
|
+
implements IEntryExitAnimationBuilder
|
|
47
|
+
{
|
|
44
48
|
static createInstance(): RollInRight {
|
|
45
49
|
return new RollInRight();
|
|
46
50
|
}
|
|
@@ -50,6 +54,7 @@ export class RollInRight
|
|
|
50
54
|
const [animation, config] = this.getAnimationAndConfig();
|
|
51
55
|
const delay = this.getDelay();
|
|
52
56
|
const callback = this.callbackV;
|
|
57
|
+
const initialValues = this.initialValues;
|
|
53
58
|
|
|
54
59
|
return () => {
|
|
55
60
|
'worklet';
|
|
@@ -62,6 +67,7 @@ export class RollInRight
|
|
|
62
67
|
},
|
|
63
68
|
initialValues: {
|
|
64
69
|
transform: [{ translateX: width }, { rotate: '180deg' }],
|
|
70
|
+
...initialValues,
|
|
65
71
|
},
|
|
66
72
|
callback: callback,
|
|
67
73
|
};
|
|
@@ -71,7 +77,8 @@ export class RollInRight
|
|
|
71
77
|
|
|
72
78
|
export class RollOutLeft
|
|
73
79
|
extends ComplexAnimationBuilder
|
|
74
|
-
implements IEntryExitAnimationBuilder
|
|
80
|
+
implements IEntryExitAnimationBuilder
|
|
81
|
+
{
|
|
75
82
|
static createInstance(): RollOutLeft {
|
|
76
83
|
return new RollOutLeft();
|
|
77
84
|
}
|
|
@@ -81,6 +88,7 @@ export class RollOutLeft
|
|
|
81
88
|
const [animation, config] = this.getAnimationAndConfig();
|
|
82
89
|
const delay = this.getDelay();
|
|
83
90
|
const callback = this.callbackV;
|
|
91
|
+
const initialValues = this.initialValues;
|
|
84
92
|
|
|
85
93
|
return () => {
|
|
86
94
|
'worklet';
|
|
@@ -93,6 +101,7 @@ export class RollOutLeft
|
|
|
93
101
|
},
|
|
94
102
|
initialValues: {
|
|
95
103
|
transform: [{ translateX: 0 }, { rotate: '0deg' }],
|
|
104
|
+
...initialValues,
|
|
96
105
|
},
|
|
97
106
|
callback: callback,
|
|
98
107
|
};
|
|
@@ -102,7 +111,8 @@ export class RollOutLeft
|
|
|
102
111
|
|
|
103
112
|
export class RollOutRight
|
|
104
113
|
extends ComplexAnimationBuilder
|
|
105
|
-
implements IEntryExitAnimationBuilder
|
|
114
|
+
implements IEntryExitAnimationBuilder
|
|
115
|
+
{
|
|
106
116
|
static createInstance(): RollOutRight {
|
|
107
117
|
return new RollOutRight();
|
|
108
118
|
}
|
|
@@ -112,6 +122,7 @@ export class RollOutRight
|
|
|
112
122
|
const [animation, config] = this.getAnimationAndConfig();
|
|
113
123
|
const delay = this.getDelay();
|
|
114
124
|
const callback = this.callbackV;
|
|
125
|
+
const initialValues = this.initialValues;
|
|
115
126
|
|
|
116
127
|
return () => {
|
|
117
128
|
'worklet';
|
|
@@ -124,6 +135,7 @@ export class RollOutRight
|
|
|
124
135
|
},
|
|
125
136
|
initialValues: {
|
|
126
137
|
transform: [{ translateX: 0 }, { rotate: '0deg' }],
|
|
138
|
+
...initialValues,
|
|
127
139
|
},
|
|
128
140
|
callback: callback,
|
|
129
141
|
};
|