react-native-reanimated 2.3.0-alpha.3 → 2.3.0-beta.4

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.
Files changed (264) hide show
  1. package/Common/cpp/LayoutAnimations/LayoutAnimationsProxy.cpp +15 -8
  2. package/Common/cpp/NativeModules/NativeReanimatedModule.cpp +176 -154
  3. package/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +49 -33
  4. package/Common/cpp/Registries/EventHandlerRegistry.cpp +14 -7
  5. package/Common/cpp/Registries/MapperRegistry.cpp +24 -20
  6. package/Common/cpp/Registries/WorkletsCache.cpp +19 -9
  7. package/Common/cpp/SharedItems/FrozenObject.cpp +17 -8
  8. package/Common/cpp/SharedItems/MutableValue.cpp +38 -25
  9. package/Common/cpp/SharedItems/MutableValueSetterProxy.cpp +11 -7
  10. package/Common/cpp/SharedItems/RemoteObject.cpp +9 -5
  11. package/Common/cpp/SharedItems/ShareableValue.cpp +211 -160
  12. package/Common/cpp/Tools/FeaturesConfig.cpp +5 -0
  13. package/Common/cpp/Tools/JSIStoreValueUser.cpp +25 -6
  14. package/Common/cpp/Tools/Mapper.cpp +30 -30
  15. package/Common/cpp/Tools/RuntimeDecorator.cpp +124 -86
  16. package/Common/cpp/Tools/Scheduler.cpp +6 -5
  17. package/Common/cpp/Tools/WorkletEventHandler.cpp +4 -2
  18. package/Common/cpp/headers/LayoutAnimations/LayoutAnimationsProxy.h +12 -11
  19. package/Common/cpp/headers/NativeModules/NativeReanimatedModule.h +50 -31
  20. package/Common/cpp/headers/NativeModules/NativeReanimatedModuleSpec.h +34 -16
  21. package/Common/cpp/headers/Registries/EventHandlerRegistry.h +15 -8
  22. package/Common/cpp/headers/Registries/MapperRegistry.h +5 -4
  23. package/Common/cpp/headers/Registries/WorkletsCache.h +9 -7
  24. package/Common/cpp/headers/SharedItems/FrozenObject.h +19 -11
  25. package/Common/cpp/headers/SharedItems/HostFunctionHandler.h +8 -4
  26. package/Common/cpp/headers/SharedItems/MutableValue.h +23 -12
  27. package/Common/cpp/headers/SharedItems/MutableValueSetterProxy.h +12 -7
  28. package/Common/cpp/headers/SharedItems/RemoteObject.h +19 -8
  29. package/Common/cpp/headers/SharedItems/RuntimeManager.h +26 -25
  30. package/Common/cpp/headers/SharedItems/ShareableValue.h +32 -27
  31. package/Common/cpp/headers/SharedItems/SharedParent.h +10 -7
  32. package/Common/cpp/headers/SharedItems/ValueWrapper.h +95 -72
  33. package/Common/cpp/headers/SpecTools/ErrorHandler.h +18 -19
  34. package/Common/cpp/headers/Tools/FeaturesConfig.h +19 -0
  35. package/Common/cpp/headers/Tools/JSIStoreValueUser.h +13 -16
  36. package/Common/cpp/headers/Tools/Mapper.h +19 -16
  37. package/Common/cpp/headers/Tools/PlatformDepMethodsHolder.h +17 -7
  38. package/Common/cpp/headers/Tools/ReanimatedHiddenHeaders.h +7 -11
  39. package/Common/cpp/headers/Tools/RuntimeDecorator.h +36 -27
  40. package/Common/cpp/headers/Tools/Scheduler.h +30 -35
  41. package/Common/cpp/headers/Tools/WorkletEventHandler.h +11 -8
  42. package/Common/cpp/hidden_headers/Logger.h +14 -14
  43. package/Common/cpp/hidden_headers/LoggerInterface.h +8 -9
  44. package/Common/cpp/hidden_headers/SpeedChecker.h +7 -8
  45. package/README.md +1 -1
  46. package/RNReanimated.podspec +24 -6
  47. package/android/build.gradle +38 -29
  48. package/android/react-native-reanimated-63-hermes.aar +0 -0
  49. package/android/react-native-reanimated-63-jsc.aar +0 -0
  50. package/android/react-native-reanimated-64-hermes.aar +0 -0
  51. package/android/react-native-reanimated-64-jsc.aar +0 -0
  52. package/android/react-native-reanimated-65-hermes.aar +0 -0
  53. package/android/react-native-reanimated-65-jsc.aar +0 -0
  54. package/android/react-native-reanimated-66-hermes.aar +0 -0
  55. package/android/react-native-reanimated-66-jsc.aar +0 -0
  56. package/android/react-native-reanimated-67-hermes.aar +0 -0
  57. package/android/react-native-reanimated-67-jsc.aar +0 -0
  58. package/ios/LayoutReanimation/REAAnimationsManager.h +10 -8
  59. package/ios/LayoutReanimation/REAAnimationsManager.m +91 -87
  60. package/ios/LayoutReanimation/REASnapshot.h +2 -2
  61. package/ios/LayoutReanimation/REASnapshot.m +8 -7
  62. package/ios/LayoutReanimation/REAUIManager.h +4 -4
  63. package/ios/LayoutReanimation/REAUIManager.mm +116 -70
  64. package/ios/Nodes/REAAlwaysNode.m +14 -15
  65. package/ios/Nodes/REABezierNode.m +8 -7
  66. package/ios/Nodes/REABlockNode.m +1 -1
  67. package/ios/Nodes/REACallFuncNode.h +0 -1
  68. package/ios/Nodes/REACallFuncNode.m +10 -8
  69. package/ios/Nodes/REAClockNodes.m +22 -20
  70. package/ios/Nodes/REAConcatNode.h +0 -1
  71. package/ios/Nodes/REAConcatNode.m +2 -2
  72. package/ios/Nodes/REACondNode.m +7 -5
  73. package/ios/Nodes/READebugNode.m +5 -4
  74. package/ios/Nodes/REAEventNode.m +1 -1
  75. package/ios/Nodes/REAFunctionNode.h +0 -1
  76. package/ios/Nodes/REAFunctionNode.m +2 -2
  77. package/ios/Nodes/REAJSCallNode.m +4 -5
  78. package/ios/Nodes/REANode.h +3 -4
  79. package/ios/Nodes/REANode.m +9 -11
  80. package/ios/Nodes/REAOperatorNode.m +68 -67
  81. package/ios/Nodes/REAParamNode.h +1 -3
  82. package/ios/Nodes/REAParamNode.m +15 -17
  83. package/ios/Nodes/REAPropsNode.h +1 -3
  84. package/ios/Nodes/REAPropsNode.m +19 -22
  85. package/ios/Nodes/REASetNode.h +0 -1
  86. package/ios/Nodes/REASetNode.m +7 -5
  87. package/ios/Nodes/REAStyleNode.h +0 -1
  88. package/ios/Nodes/REAStyleNode.m +2 -4
  89. package/ios/Nodes/REATransformNode.h +0 -1
  90. package/ios/Nodes/REATransformNode.m +3 -5
  91. package/ios/Nodes/REAValueNode.m +5 -7
  92. package/ios/REAEventDispatcher.m +4 -4
  93. package/ios/REAModule.h +0 -2
  94. package/ios/REAModule.m +29 -38
  95. package/ios/REANodesManager.h +11 -19
  96. package/ios/REANodesManager.m +106 -130
  97. package/ios/REAUtils.h +5 -3
  98. package/ios/RNGestureHandlerStateManager.h +5 -0
  99. package/ios/Transitioning/RCTConvert+REATransition.m +45 -29
  100. package/ios/Transitioning/REAAllTransitions.h +2 -2
  101. package/ios/Transitioning/REAAllTransitions.m +14 -25
  102. package/ios/Transitioning/REATransition.h +8 -7
  103. package/ios/Transitioning/REATransition.m +19 -16
  104. package/ios/Transitioning/REATransitionAnimation.h +1 -1
  105. package/ios/Transitioning/REATransitionAnimation.m +2 -3
  106. package/ios/Transitioning/REATransitionManager.m +3 -3
  107. package/ios/native/NativeMethods.h +20 -5
  108. package/ios/native/NativeMethods.mm +14 -6
  109. package/ios/native/NativeProxy.h +4 -2
  110. package/ios/native/NativeProxy.mm +84 -63
  111. package/ios/native/REAIOSErrorHandler.h +13 -10
  112. package/ios/native/REAIOSErrorHandler.mm +19 -15
  113. package/ios/native/REAIOSLogger.h +8 -8
  114. package/ios/native/REAIOSLogger.mm +10 -6
  115. package/ios/native/REAIOSScheduler.h +5 -5
  116. package/ios/native/REAIOSScheduler.mm +17 -10
  117. package/ios/native/REAInitializer.h +5 -7
  118. package/ios/native/REAInitializer.mm +43 -31
  119. package/ios/native/UIResponder+Reanimated.mm +2 -2
  120. package/lib/Animated.js +9 -1
  121. package/lib/ConfigHelper.js +121 -138
  122. package/lib/ReanimatedEventEmitter.js +0 -1
  123. package/lib/ReanimatedModule.js +0 -1
  124. package/lib/ReanimatedModule.macos.js +0 -1
  125. package/lib/ReanimatedModule.native.js +5 -6
  126. package/lib/ReanimatedModule.windows.js +0 -1
  127. package/lib/ReanimatedModuleCompat.js +64 -35
  128. package/lib/createAnimatedComponent.js +468 -487
  129. package/lib/index.js +9 -1
  130. package/lib/reanimated2/NativeMethods.js +7 -12
  131. package/lib/reanimated2/NativeReanimated/NativeReanimated.js +37 -0
  132. package/lib/reanimated2/NativeReanimated/index.js +15 -0
  133. package/lib/reanimated2/PropAdapters.js +0 -1
  134. package/lib/reanimated2/UpdateProps.js +6 -7
  135. package/lib/reanimated2/ViewDescriptorsSet.js +4 -4
  136. package/lib/reanimated2/WorkletEventHandler.js +15 -13
  137. package/lib/reanimated2/animation/delay.js +8 -2
  138. package/lib/reanimated2/animation/spring.js +2 -0
  139. package/lib/reanimated2/animation/styleAnimation.js +7 -3
  140. package/lib/reanimated2/animation/util.js +25 -2
  141. package/lib/reanimated2/core.js +41 -17
  142. package/lib/reanimated2/globals.d.ts +21 -1
  143. package/lib/reanimated2/hook/useAnimatedRef.js +1 -1
  144. package/lib/reanimated2/hook/useAnimatedStyle.js +3 -3
  145. package/lib/reanimated2/index.js +1 -0
  146. package/lib/reanimated2/interpolation.js +95 -87
  147. package/lib/reanimated2/js-reanimated/JSReanimated.js +13 -10
  148. package/lib/reanimated2/js-reanimated/Mapper.js +4 -3
  149. package/lib/reanimated2/js-reanimated/MapperRegistry.js +3 -6
  150. package/lib/reanimated2/js-reanimated/MutableValue.js +0 -2
  151. package/lib/reanimated2/js-reanimated/index.js +10 -8
  152. package/lib/reanimated2/layoutReanimation/LayoutAnimationRepository.js +33 -2
  153. package/lib/reanimated2/layoutReanimation/animationBuilder/BaseAnimationBuilder.js +27 -124
  154. package/lib/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js +125 -0
  155. package/lib/reanimated2/layoutReanimation/animationBuilder/index.js +1 -2
  156. package/lib/reanimated2/layoutReanimation/defaultAnimations/Bounce.js +115 -45
  157. package/lib/reanimated2/layoutReanimation/defaultAnimations/Default.js +7 -2
  158. package/lib/reanimated2/layoutReanimation/defaultAnimations/Fade.js +21 -21
  159. package/lib/reanimated2/layoutReanimation/defaultAnimations/Flip.js +25 -25
  160. package/lib/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.js +19 -17
  161. package/lib/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.js +5 -5
  162. package/lib/reanimated2/layoutReanimation/defaultAnimations/Roll.js +9 -9
  163. package/lib/reanimated2/layoutReanimation/defaultAnimations/Rotate.js +17 -17
  164. package/lib/reanimated2/layoutReanimation/defaultAnimations/Slide.js +19 -19
  165. package/lib/reanimated2/layoutReanimation/defaultAnimations/Stretch.js +9 -9
  166. package/lib/reanimated2/layoutReanimation/defaultAnimations/Zoom.js +33 -33
  167. package/lib/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.js +78 -0
  168. package/lib/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.js +128 -0
  169. package/lib/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.js +37 -0
  170. package/lib/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.js +41 -0
  171. package/lib/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.js +34 -0
  172. package/lib/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.js +46 -0
  173. package/lib/reanimated2/layoutReanimation/defaultTransitions/index.js +6 -0
  174. package/lib/reanimated2/layoutReanimation/index.js +1 -0
  175. package/lib/reanimated2/mock.js +3 -1
  176. package/lib/reanimated2/utils.js +9 -0
  177. package/lib/setAndForwardRef.js +14 -48
  178. package/libSo/fbjni/jni/arm64-v8a/libfbjni.so +0 -0
  179. package/libSo/fbjni/jni/armeabi-v7a/libfbjni.so +0 -0
  180. package/libSo/fbjni/jni/x86/libfbjni.so +0 -0
  181. package/libSo/fbjni/jni/x86_64/libfbjni.so +0 -0
  182. package/mock.js +1 -1
  183. package/package.json +28 -17
  184. package/plugin.js +220 -39
  185. package/react-native-reanimated.d.ts +542 -547
  186. package/src/Animated.js +9 -1
  187. package/src/{ConfigHelper.js → ConfigHelper.ts} +15 -7
  188. package/src/{ReanimatedEventEmitter.js → ReanimatedEventEmitter.ts} +0 -0
  189. package/src/{ReanimatedModule.js → ReanimatedModule.macos.ts} +0 -0
  190. package/src/{ReanimatedModule.native.js → ReanimatedModule.native.ts} +0 -0
  191. package/src/{ReanimatedModule.macos.js → ReanimatedModule.ts} +0 -0
  192. package/src/{ReanimatedModule.windows.js → ReanimatedModule.windows.ts} +0 -0
  193. package/src/ReanimatedModuleCompat.ts +51 -0
  194. package/src/{createAnimatedComponent.js → createAnimatedComponent.tsx} +285 -126
  195. package/src/reanimated2/NativeMethods.ts +34 -13
  196. package/src/reanimated2/NativeReanimated/NativeReanimated.ts +72 -0
  197. package/src/reanimated2/NativeReanimated/index.ts +18 -0
  198. package/src/reanimated2/PropAdapters.ts +0 -1
  199. package/src/reanimated2/UpdateProps.ts +31 -15
  200. package/src/reanimated2/ViewDescriptorsSet.ts +15 -12
  201. package/src/reanimated2/WorkletEventHandler.ts +41 -23
  202. package/src/reanimated2/animation/commonTypes.ts +4 -4
  203. package/src/reanimated2/animation/decay.ts +2 -2
  204. package/src/reanimated2/animation/delay.ts +11 -5
  205. package/src/reanimated2/animation/index.ts +7 -7
  206. package/src/reanimated2/animation/repeat.ts +4 -4
  207. package/src/reanimated2/animation/sequence.ts +2 -2
  208. package/src/reanimated2/animation/spring.ts +6 -5
  209. package/src/reanimated2/animation/styleAnimation.ts +27 -15
  210. package/src/reanimated2/animation/timing.ts +5 -5
  211. package/src/reanimated2/animation/util.ts +47 -8
  212. package/src/reanimated2/commonTypes.ts +3 -0
  213. package/src/reanimated2/core.ts +80 -34
  214. package/src/reanimated2/globals.d.ts +21 -1
  215. package/src/reanimated2/hook/useAnimatedGestureHandler.ts +1 -1
  216. package/src/reanimated2/hook/useAnimatedRef.ts +13 -15
  217. package/src/reanimated2/hook/useAnimatedScrollHandler.ts +3 -3
  218. package/src/reanimated2/hook/useAnimatedStyle.ts +7 -7
  219. package/src/reanimated2/hook/utils.ts +4 -3
  220. package/src/reanimated2/index.ts +1 -0
  221. package/src/reanimated2/interpolation.ts +170 -103
  222. package/src/reanimated2/js-reanimated/JSReanimated.ts +37 -23
  223. package/src/reanimated2/js-reanimated/Mapper.ts +22 -9
  224. package/src/reanimated2/js-reanimated/MapperRegistry.ts +22 -19
  225. package/src/reanimated2/js-reanimated/MutableValue.ts +11 -11
  226. package/src/reanimated2/js-reanimated/index.ts +31 -14
  227. package/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts +75 -0
  228. package/src/reanimated2/layoutReanimation/animationBuilder/BaseAnimationBuilder.ts +29 -159
  229. package/src/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.ts +169 -0
  230. package/src/reanimated2/layoutReanimation/animationBuilder/Keyframe.ts +2 -2
  231. package/src/reanimated2/layoutReanimation/animationBuilder/commonTypes.ts +3 -9
  232. package/src/reanimated2/layoutReanimation/animationBuilder/index.ts +1 -5
  233. package/src/reanimated2/layoutReanimation/defaultAnimations/Bounce.ts +162 -82
  234. package/src/reanimated2/layoutReanimation/defaultAnimations/Default.ts +7 -2
  235. package/src/reanimated2/layoutReanimation/defaultAnimations/Fade.ts +32 -32
  236. package/src/reanimated2/layoutReanimation/defaultAnimations/Flip.ts +38 -38
  237. package/src/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.ts +34 -32
  238. package/src/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.ts +8 -8
  239. package/src/reanimated2/layoutReanimation/defaultAnimations/Roll.ts +14 -14
  240. package/src/reanimated2/layoutReanimation/defaultAnimations/Rotate.ts +26 -26
  241. package/src/reanimated2/layoutReanimation/defaultAnimations/Slide.ts +28 -28
  242. package/src/reanimated2/layoutReanimation/defaultAnimations/Stretch.ts +14 -14
  243. package/src/reanimated2/layoutReanimation/defaultAnimations/Zoom.ts +50 -50
  244. package/src/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.ts +104 -0
  245. package/src/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.ts +213 -0
  246. package/src/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.ts +60 -0
  247. package/src/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.ts +58 -0
  248. package/src/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.ts +41 -0
  249. package/src/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.ts +78 -0
  250. package/src/reanimated2/layoutReanimation/defaultTransitions/index.ts +6 -0
  251. package/src/reanimated2/layoutReanimation/index.ts +1 -0
  252. package/src/reanimated2/mock.ts +3 -1
  253. package/src/reanimated2/utils.ts +21 -0
  254. package/src/{setAndForwardRef.js → setAndForwardRef.ts} +12 -2
  255. package/android/react-native-reanimated-62-hermes.aar +0 -0
  256. package/android/react-native-reanimated-62-jsc.aar +0 -0
  257. package/lib/reanimated2/NativeReanimated.js +0 -48
  258. package/lib/reanimated2/layoutReanimation/animationBuilder/BaseBounceAnimationBuilder.js +0 -55
  259. package/lib/reanimated2/layoutReanimation/animationBuilder/LayoutAnimationBuilder.js +0 -165
  260. package/src/ReanimatedModuleCompat.js +0 -37
  261. package/src/reanimated2/NativeReanimated.ts +0 -70
  262. package/src/reanimated2/layoutReanimation/LayoutAnimationRepository.tsx +0 -41
  263. package/src/reanimated2/layoutReanimation/animationBuilder/BaseBounceAnimationBuilder.ts +0 -82
  264. package/src/reanimated2/layoutReanimation/animationBuilder/LayoutAnimationBuilder.ts +0 -217
@@ -0,0 +1,125 @@
1
+ import { withTiming, withSpring } from '../../animation';
2
+ import { BaseAnimationBuilder } from './BaseAnimationBuilder';
3
+ export class ComplexAnimationBuilder extends BaseAnimationBuilder {
4
+ static easing(easingFunction) {
5
+ const instance = this.createInstance();
6
+ return instance.easing(easingFunction);
7
+ }
8
+ easing(easingFunction) {
9
+ this.easingV = easingFunction;
10
+ return this;
11
+ }
12
+ static rotate(degree) {
13
+ const instance = this.createInstance();
14
+ return instance.rotate(degree);
15
+ }
16
+ rotate(degree) {
17
+ this.rotateV = degree;
18
+ return this;
19
+ }
20
+ static springify() {
21
+ const instance = this.createInstance();
22
+ return instance.springify();
23
+ }
24
+ springify() {
25
+ this.type = withSpring;
26
+ return this;
27
+ }
28
+ static damping(damping) {
29
+ const instance = this.createInstance();
30
+ return instance.damping(damping);
31
+ }
32
+ damping(damping) {
33
+ this.dampingV = damping;
34
+ return this;
35
+ }
36
+ static mass(mass) {
37
+ const instance = this.createInstance();
38
+ return instance.mass(mass);
39
+ }
40
+ mass(mass) {
41
+ this.massV = mass;
42
+ return this;
43
+ }
44
+ static stiffness(stiffness) {
45
+ const instance = this.createInstance();
46
+ return instance.stiffness(stiffness);
47
+ }
48
+ stiffness(stiffness) {
49
+ this.stiffnessV = stiffness;
50
+ return this;
51
+ }
52
+ static overshootClamping(overshootClamping) {
53
+ const instance = this.createInstance();
54
+ return instance.overshootClamping(overshootClamping);
55
+ }
56
+ overshootClamping(overshootClamping) {
57
+ this.overshootClampingV = overshootClamping;
58
+ return this;
59
+ }
60
+ static restDisplacementThreshold(restDisplacementThreshold) {
61
+ const instance = this.createInstance();
62
+ return instance.restDisplacementThreshold(restDisplacementThreshold);
63
+ }
64
+ restDisplacementThreshold(restDisplacementThreshold) {
65
+ this.restDisplacementThresholdV = restDisplacementThreshold;
66
+ return this;
67
+ }
68
+ static restSpeedThreshold(restSpeedThreshold) {
69
+ const instance = this.createInstance();
70
+ return instance.restSpeedThreshold(restSpeedThreshold);
71
+ }
72
+ restSpeedThreshold(restSpeedThreshold) {
73
+ this.restSpeedThresholdV = restSpeedThreshold;
74
+ return this;
75
+ }
76
+ getAnimationAndConfig() {
77
+ const duration = this.durationV;
78
+ const easing = this.easingV;
79
+ const rotate = this.rotateV;
80
+ const type = this.type ? this.type : withTiming;
81
+ const damping = this.dampingV;
82
+ const mass = this.massV;
83
+ const stiffness = this.stiffnessV;
84
+ const overshootClamping = this.overshootClampingV;
85
+ const restDisplacementThreshold = this.restDisplacementThresholdV;
86
+ const restSpeedThreshold = this.restSpeedThresholdV;
87
+ const animation = type;
88
+ const config = {};
89
+ if (type === withTiming) {
90
+ if (easing) {
91
+ config.easing = easing;
92
+ }
93
+ if (duration) {
94
+ config.duration = duration;
95
+ }
96
+ if (rotate) {
97
+ config.rotate = rotate;
98
+ }
99
+ }
100
+ else {
101
+ if (damping) {
102
+ config.damping = damping;
103
+ }
104
+ if (mass) {
105
+ config.mass = mass;
106
+ }
107
+ if (stiffness) {
108
+ config.stiffness = stiffness;
109
+ }
110
+ if (overshootClamping) {
111
+ config.overshootClamping = overshootClamping;
112
+ }
113
+ if (restDisplacementThreshold) {
114
+ config.restDisplacementThreshold = restDisplacementThreshold;
115
+ }
116
+ if (restSpeedThreshold) {
117
+ config.restSpeedThreshold = restSpeedThreshold;
118
+ }
119
+ if (rotate) {
120
+ config.rotate = rotate;
121
+ }
122
+ }
123
+ return [animation, config];
124
+ }
125
+ }
@@ -1,4 +1,3 @@
1
1
  export { BaseAnimationBuilder } from './BaseAnimationBuilder';
2
- export { BaseBounceAnimationBuilder } from './BaseBounceAnimationBuilder';
3
- export { LayoutAnimationBuilder, Layout } from './LayoutAnimationBuilder';
2
+ export { ComplexAnimationBuilder } from './ComplexAnimationBuilder';
4
3
  export { Keyframe } from './Keyframe';
@@ -1,14 +1,14 @@
1
- import { BaseBounceAnimationBuilder } from '../animationBuilder/BaseBounceAnimationBuilder';
2
1
  import { withSequence, withTiming } from '../../animation';
3
2
  import { Dimensions } from 'react-native';
3
+ import { BaseAnimationBuilder } from '../animationBuilder/BaseAnimationBuilder';
4
4
  const { width, height } = Dimensions.get('window');
5
- export class BounceIn extends BaseBounceAnimationBuilder {
5
+ export class BounceIn extends BaseAnimationBuilder {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  this.build = () => {
9
9
  const delayFunction = this.getDelayFunction();
10
- const delay = this.delayV;
11
- const duration = this.durationV ? this.durationV : 250;
10
+ const delay = this.getDelay();
11
+ const duration = this.getDuration();
12
12
  const callback = this.callbackV;
13
13
  return () => {
14
14
  'worklet';
@@ -16,7 +16,7 @@ export class BounceIn extends BaseBounceAnimationBuilder {
16
16
  animations: {
17
17
  transform: [
18
18
  {
19
- scale: delayFunction(delay, withSequence(withTiming(1.2, { duration: duration }), withTiming(0.9, { duration: (duration * 100) / 250 }), withTiming(1.1, { duration: (duration * 100) / 250 }), withTiming(1, { duration: (duration * 100) / 250 }))),
19
+ scale: delayFunction(delay, withSequence(withTiming(1.2, { duration: duration * 0.55 }), withTiming(0.9, { duration: duration * 0.15 }), withTiming(1.1, { duration: duration * 0.15 }), withTiming(1, { duration: duration * 0.15 }))),
20
20
  },
21
21
  ],
22
22
  },
@@ -31,14 +31,21 @@ export class BounceIn extends BaseBounceAnimationBuilder {
31
31
  static createInstance() {
32
32
  return new BounceIn();
33
33
  }
34
+ static getDuration() {
35
+ return 600;
36
+ }
37
+ getDuration() {
38
+ var _a;
39
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
40
+ }
34
41
  }
35
- export class BounceInDown extends BaseBounceAnimationBuilder {
42
+ export class BounceInDown extends BaseAnimationBuilder {
36
43
  constructor() {
37
44
  super(...arguments);
38
45
  this.build = () => {
39
46
  const delayFunction = this.getDelayFunction();
40
- const delay = this.delayV;
41
- const duration = this.durationV ? this.durationV : 250;
47
+ const delay = this.getDelay();
48
+ const duration = this.getDuration();
42
49
  const callback = this.callbackV;
43
50
  return () => {
44
51
  'worklet';
@@ -46,7 +53,7 @@ export class BounceInDown extends BaseBounceAnimationBuilder {
46
53
  animations: {
47
54
  transform: [
48
55
  {
49
- translateY: delayFunction(delay, withSequence(withTiming(-20, { duration: duration }), withTiming(10, { duration: (duration * 100) / 250 }), withTiming(-10, { duration: (duration * 100) / 250 }), withTiming(0, { duration: (duration * 100) / 250 }))),
56
+ translateY: delayFunction(delay, withSequence(withTiming(-20, { duration: duration * 0.55 }), withTiming(10, { duration: duration * 0.15 }), withTiming(-10, { duration: duration * 0.15 }), withTiming(0, { duration: duration * 0.15 }))),
50
57
  },
51
58
  ],
52
59
  },
@@ -65,14 +72,21 @@ export class BounceInDown extends BaseBounceAnimationBuilder {
65
72
  static createInstance() {
66
73
  return new BounceInDown();
67
74
  }
75
+ static getDuration() {
76
+ return 600;
77
+ }
78
+ getDuration() {
79
+ var _a;
80
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
81
+ }
68
82
  }
69
- export class BounceInUp extends BaseBounceAnimationBuilder {
83
+ export class BounceInUp extends BaseAnimationBuilder {
70
84
  constructor() {
71
85
  super(...arguments);
72
86
  this.build = () => {
73
87
  const delayFunction = this.getDelayFunction();
74
- const delay = this.delayV;
75
- const duration = this.durationV ? this.durationV : 250;
88
+ const delay = this.getDelay();
89
+ const duration = this.getDuration();
76
90
  const callback = this.callbackV;
77
91
  return () => {
78
92
  'worklet';
@@ -80,7 +94,7 @@ export class BounceInUp extends BaseBounceAnimationBuilder {
80
94
  animations: {
81
95
  transform: [
82
96
  {
83
- translateY: delayFunction(delay, withSequence(withTiming(20, { duration: duration }), withTiming(-10, { duration: (duration * 100) / 250 }), withTiming(10, { duration: (duration * 100) / 250 }), withTiming(0, { duration: (duration * 100) / 250 }))),
97
+ translateY: delayFunction(delay, withSequence(withTiming(20, { duration: duration * 0.55 }), withTiming(-10, { duration: duration * 0.15 }), withTiming(10, { duration: duration * 0.15 }), withTiming(0, { duration: duration * 0.15 }))),
84
98
  },
85
99
  ],
86
100
  },
@@ -95,14 +109,21 @@ export class BounceInUp extends BaseBounceAnimationBuilder {
95
109
  static createInstance() {
96
110
  return new BounceInUp();
97
111
  }
112
+ static getDuration() {
113
+ return 600;
114
+ }
115
+ getDuration() {
116
+ var _a;
117
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
118
+ }
98
119
  }
99
- export class BounceInLeft extends BaseBounceAnimationBuilder {
120
+ export class BounceInLeft extends BaseAnimationBuilder {
100
121
  constructor() {
101
122
  super(...arguments);
102
123
  this.build = () => {
103
124
  const delayFunction = this.getDelayFunction();
104
- const delay = this.delayV;
105
- const duration = this.durationV ? this.durationV : 250;
125
+ const delay = this.getDelay();
126
+ const duration = this.getDuration();
106
127
  const callback = this.callbackV;
107
128
  return () => {
108
129
  'worklet';
@@ -110,7 +131,7 @@ export class BounceInLeft extends BaseBounceAnimationBuilder {
110
131
  animations: {
111
132
  transform: [
112
133
  {
113
- translateX: delayFunction(delay, withSequence(withTiming(20, { duration: duration }), withTiming(-10, { duration: (duration * 100) / 250 }), withTiming(10, { duration: (duration * 100) / 250 }), withTiming(0, { duration: (duration * 100) / 250 }))),
134
+ translateX: delayFunction(delay, withSequence(withTiming(20, { duration: duration * 0.55 }), withTiming(-10, { duration: duration * 0.15 }), withTiming(10, { duration: duration * 0.15 }), withTiming(0, { duration: duration * 0.15 }))),
114
135
  },
115
136
  ],
116
137
  },
@@ -125,14 +146,21 @@ export class BounceInLeft extends BaseBounceAnimationBuilder {
125
146
  static createInstance() {
126
147
  return new BounceInLeft();
127
148
  }
149
+ static getDuration() {
150
+ return 600;
151
+ }
152
+ getDuration() {
153
+ var _a;
154
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
155
+ }
128
156
  }
129
- export class BounceInRight extends BaseBounceAnimationBuilder {
157
+ export class BounceInRight extends BaseAnimationBuilder {
130
158
  constructor() {
131
159
  super(...arguments);
132
160
  this.build = () => {
133
161
  const delayFunction = this.getDelayFunction();
134
- const delay = this.delayV;
135
- const duration = this.durationV ? this.durationV : 250;
162
+ const delay = this.getDelay();
163
+ const duration = this.getDuration();
136
164
  const callback = this.callbackV;
137
165
  return () => {
138
166
  'worklet';
@@ -140,7 +168,7 @@ export class BounceInRight extends BaseBounceAnimationBuilder {
140
168
  animations: {
141
169
  transform: [
142
170
  {
143
- translateX: delayFunction(delay, withSequence(withTiming(-20, { duration: duration }), withTiming(10, { duration: (duration * 100) / 250 }), withTiming(-10, { duration: (duration * 100) / 250 }), withTiming(0, { duration: (duration * 100) / 250 }))),
171
+ translateX: delayFunction(delay, withSequence(withTiming(-20, { duration: duration * 0.55 }), withTiming(10, { duration: duration * 0.15 }), withTiming(-10, { duration: duration * 0.15 }), withTiming(0, { duration: duration * 0.15 }))),
144
172
  },
145
173
  ],
146
174
  },
@@ -155,14 +183,21 @@ export class BounceInRight extends BaseBounceAnimationBuilder {
155
183
  static createInstance() {
156
184
  return new BounceInRight();
157
185
  }
186
+ static getDuration() {
187
+ return 600;
188
+ }
189
+ getDuration() {
190
+ var _a;
191
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
192
+ }
158
193
  }
159
- export class BounceOut extends BaseBounceAnimationBuilder {
194
+ export class BounceOut extends BaseAnimationBuilder {
160
195
  constructor() {
161
196
  super(...arguments);
162
197
  this.build = () => {
163
198
  const delayFunction = this.getDelayFunction();
164
- const delay = this.delayV;
165
- const duration = this.durationV ? this.durationV : 250;
199
+ const delay = this.getDelay();
200
+ const duration = this.getDuration();
166
201
  const callback = this.callbackV;
167
202
  return () => {
168
203
  'worklet';
@@ -170,7 +205,7 @@ export class BounceOut extends BaseBounceAnimationBuilder {
170
205
  animations: {
171
206
  transform: [
172
207
  {
173
- scale: delayFunction(delay, withSequence(withTiming(1.1, { duration: (duration * 100) / 250 }), withTiming(0.9, { duration: (duration * 100) / 250 }), withTiming(1.2, { duration: (duration * 100) / 250 }), withTiming(0, { duration: duration }))),
208
+ scale: delayFunction(delay, withSequence(withTiming(1.1, { duration: duration * 0.15 }), withTiming(0.9, { duration: duration * 0.15 }), withTiming(1.2, { duration: duration * 0.15 }), withTiming(0, { duration: duration * 0.55 }))),
174
209
  },
175
210
  ],
176
211
  },
@@ -185,14 +220,21 @@ export class BounceOut extends BaseBounceAnimationBuilder {
185
220
  static createInstance() {
186
221
  return new BounceOut();
187
222
  }
223
+ static getDuration() {
224
+ return 600;
225
+ }
226
+ getDuration() {
227
+ var _a;
228
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
229
+ }
188
230
  }
189
- export class BounceOutDown extends BaseBounceAnimationBuilder {
231
+ export class BounceOutDown extends BaseAnimationBuilder {
190
232
  constructor() {
191
233
  super(...arguments);
192
234
  this.build = () => {
193
235
  const delayFunction = this.getDelayFunction();
194
- const delay = this.delayV;
195
- const duration = this.durationV ? this.durationV : 250;
236
+ const delay = this.getDelay();
237
+ const duration = this.getDuration();
196
238
  const callback = this.callbackV;
197
239
  return () => {
198
240
  'worklet';
@@ -200,8 +242,8 @@ export class BounceOutDown extends BaseBounceAnimationBuilder {
200
242
  animations: {
201
243
  transform: [
202
244
  {
203
- translateY: delayFunction(delay, withSequence(withTiming(-10, { duration: (duration * 100) / 250 }), withTiming(10, { duration: (duration * 100) / 250 }), withTiming(-20, { duration: (duration * 100) / 250 }), withTiming(height, {
204
- duration: duration,
245
+ translateY: delayFunction(delay, withSequence(withTiming(-10, { duration: duration * 0.15 }), withTiming(10, { duration: duration * 0.15 }), withTiming(-20, { duration: duration * 0.15 }), withTiming(height, {
246
+ duration: duration * 0.55,
205
247
  }))),
206
248
  },
207
249
  ],
@@ -217,14 +259,21 @@ export class BounceOutDown extends BaseBounceAnimationBuilder {
217
259
  static createInstance() {
218
260
  return new BounceOutDown();
219
261
  }
262
+ static getDuration() {
263
+ return 600;
264
+ }
265
+ getDuration() {
266
+ var _a;
267
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
268
+ }
220
269
  }
221
- export class BounceOutUp extends BaseBounceAnimationBuilder {
270
+ export class BounceOutUp extends BaseAnimationBuilder {
222
271
  constructor() {
223
272
  super(...arguments);
224
273
  this.build = () => {
225
274
  const delayFunction = this.getDelayFunction();
226
- const delay = this.delayV;
227
- const duration = this.durationV ? this.durationV : 250;
275
+ const delay = this.getDelay();
276
+ const duration = this.getDuration();
228
277
  const callback = this.callbackV;
229
278
  return () => {
230
279
  'worklet';
@@ -232,8 +281,8 @@ export class BounceOutUp extends BaseBounceAnimationBuilder {
232
281
  animations: {
233
282
  transform: [
234
283
  {
235
- translateY: delayFunction(delay, withSequence(withTiming(10, { duration: (duration * 100) / 250 }), withTiming(-10, { duration: (duration * 100) / 250 }), withTiming(20, { duration: (duration * 100) / 250 }), withTiming(-height, {
236
- duration: duration,
284
+ translateY: delayFunction(delay, withSequence(withTiming(10, { duration: duration * 0.15 }), withTiming(-10, { duration: duration * 0.15 }), withTiming(20, { duration: duration * 0.15 }), withTiming(-height, {
285
+ duration: duration * 0.55,
237
286
  }))),
238
287
  },
239
288
  ],
@@ -249,14 +298,21 @@ export class BounceOutUp extends BaseBounceAnimationBuilder {
249
298
  static createInstance() {
250
299
  return new BounceOutUp();
251
300
  }
301
+ static getDuration() {
302
+ return 600;
303
+ }
304
+ getDuration() {
305
+ var _a;
306
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
307
+ }
252
308
  }
253
- export class BounceOutLeft extends BaseBounceAnimationBuilder {
309
+ export class BounceOutLeft extends BaseAnimationBuilder {
254
310
  constructor() {
255
311
  super(...arguments);
256
312
  this.build = () => {
257
313
  const delayFunction = this.getDelayFunction();
258
- const delay = this.delayV;
259
- const duration = this.durationV ? this.durationV : 250;
314
+ const delay = this.getDelay();
315
+ const duration = this.getDuration();
260
316
  const callback = this.callbackV;
261
317
  return () => {
262
318
  'worklet';
@@ -264,8 +320,8 @@ export class BounceOutLeft extends BaseBounceAnimationBuilder {
264
320
  animations: {
265
321
  transform: [
266
322
  {
267
- translateX: delayFunction(delay, withSequence(withTiming(10, { duration: (duration * 100) / 250 }), withTiming(-10, { duration: (duration * 100) / 250 }), withTiming(20, { duration: (duration * 100) / 250 }), withTiming(-width, {
268
- duration: duration,
323
+ translateX: delayFunction(delay, withSequence(withTiming(10, { duration: duration * 0.15 }), withTiming(-10, { duration: duration * 0.15 }), withTiming(20, { duration: duration * 0.15 }), withTiming(-width, {
324
+ duration: duration * 0.55,
269
325
  }))),
270
326
  },
271
327
  ],
@@ -281,14 +337,21 @@ export class BounceOutLeft extends BaseBounceAnimationBuilder {
281
337
  static createInstance() {
282
338
  return new BounceOutLeft();
283
339
  }
340
+ static getDuration() {
341
+ return 600;
342
+ }
343
+ getDuration() {
344
+ var _a;
345
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
346
+ }
284
347
  }
285
- export class BounceOutRight extends BaseBounceAnimationBuilder {
348
+ export class BounceOutRight extends BaseAnimationBuilder {
286
349
  constructor() {
287
350
  super(...arguments);
288
351
  this.build = () => {
289
352
  const delayFunction = this.getDelayFunction();
290
- const delay = this.delayV;
291
- const duration = this.durationV ? this.durationV : 250;
353
+ const delay = this.getDelay();
354
+ const duration = this.getDuration();
292
355
  const callback = this.callbackV;
293
356
  return () => {
294
357
  'worklet';
@@ -296,8 +359,8 @@ export class BounceOutRight extends BaseBounceAnimationBuilder {
296
359
  animations: {
297
360
  transform: [
298
361
  {
299
- translateX: delayFunction(delay, withSequence(withTiming(-10, { duration: (duration * 100) / 250 }), withTiming(10, { duration: (duration * 100) / 250 }), withTiming(-20, { duration: (duration * 100) / 250 }), withTiming(width, {
300
- duration: duration,
362
+ translateX: delayFunction(delay, withSequence(withTiming(-10, { duration: duration * 0.15 }), withTiming(10, { duration: duration * 0.15 }), withTiming(-20, { duration: duration * 0.15 }), withTiming(width, {
363
+ duration: duration * 0.55,
301
364
  }))),
302
365
  },
303
366
  ],
@@ -313,4 +376,11 @@ export class BounceOutRight extends BaseBounceAnimationBuilder {
313
376
  static createInstance() {
314
377
  return new BounceOutRight();
315
378
  }
379
+ static getDuration() {
380
+ return 600;
381
+ }
382
+ getDuration() {
383
+ var _a;
384
+ return (_a = this.durationV) !== null && _a !== void 0 ? _a : 600;
385
+ }
316
386
  }
@@ -1,7 +1,12 @@
1
- export const DefaultLayout = (_) => {
1
+ export const DefaultLayout = (values) => {
2
2
  'worklet';
3
3
  return {
4
- initialValues: {},
4
+ initialValues: {
5
+ originX: values.originX,
6
+ originY: values.originY,
7
+ width: values.width,
8
+ height: values.height,
9
+ },
5
10
  animations: {},
6
11
  };
7
12
  };
@@ -1,12 +1,12 @@
1
- import { BaseAnimationBuilder } from '../animationBuilder/BaseAnimationBuilder';
2
- export class FadeIn extends BaseAnimationBuilder {
1
+ import { ComplexAnimationBuilder } from '../animationBuilder';
2
+ export class FadeIn extends ComplexAnimationBuilder {
3
3
  constructor() {
4
4
  super(...arguments);
5
5
  this.build = () => {
6
6
  const delayFunction = this.getDelayFunction();
7
7
  const [animation, config] = this.getAnimationAndConfig();
8
8
  const callback = this.callbackV;
9
- const delay = this.delayV;
9
+ const delay = this.getDelay();
10
10
  return (_) => {
11
11
  'worklet';
12
12
  return {
@@ -25,14 +25,14 @@ export class FadeIn extends BaseAnimationBuilder {
25
25
  return new FadeIn();
26
26
  }
27
27
  }
28
- export class FadeInRight extends BaseAnimationBuilder {
28
+ export class FadeInRight extends ComplexAnimationBuilder {
29
29
  constructor() {
30
30
  super(...arguments);
31
31
  this.build = () => {
32
32
  const delayFunction = this.getDelayFunction();
33
33
  const [animation, config] = this.getAnimationAndConfig();
34
34
  const callback = this.callbackV;
35
- const delay = this.delayV;
35
+ const delay = this.getDelay();
36
36
  return () => {
37
37
  'worklet';
38
38
  return {
@@ -55,14 +55,14 @@ export class FadeInRight extends BaseAnimationBuilder {
55
55
  return new FadeInRight();
56
56
  }
57
57
  }
58
- export class FadeInLeft extends BaseAnimationBuilder {
58
+ export class FadeInLeft extends ComplexAnimationBuilder {
59
59
  constructor() {
60
60
  super(...arguments);
61
61
  this.build = () => {
62
62
  const delayFunction = this.getDelayFunction();
63
63
  const [animation, config] = this.getAnimationAndConfig();
64
64
  const callback = this.callbackV;
65
- const delay = this.delayV;
65
+ const delay = this.getDelay();
66
66
  return () => {
67
67
  'worklet';
68
68
  return {
@@ -85,14 +85,14 @@ export class FadeInLeft extends BaseAnimationBuilder {
85
85
  return new FadeInLeft();
86
86
  }
87
87
  }
88
- export class FadeInUp extends BaseAnimationBuilder {
88
+ export class FadeInUp extends ComplexAnimationBuilder {
89
89
  constructor() {
90
90
  super(...arguments);
91
91
  this.build = () => {
92
92
  const delayFunction = this.getDelayFunction();
93
93
  const [animation, config] = this.getAnimationAndConfig();
94
94
  const callback = this.callbackV;
95
- const delay = this.delayV;
95
+ const delay = this.getDelay();
96
96
  return () => {
97
97
  'worklet';
98
98
  return {
@@ -115,14 +115,14 @@ export class FadeInUp extends BaseAnimationBuilder {
115
115
  return new FadeInUp();
116
116
  }
117
117
  }
118
- export class FadeInDown extends BaseAnimationBuilder {
118
+ export class FadeInDown extends ComplexAnimationBuilder {
119
119
  constructor() {
120
120
  super(...arguments);
121
121
  this.build = () => {
122
122
  const delayFunction = this.getDelayFunction();
123
123
  const [animation, config] = this.getAnimationAndConfig();
124
124
  const callback = this.callbackV;
125
- const delay = this.delayV;
125
+ const delay = this.getDelay();
126
126
  return () => {
127
127
  'worklet';
128
128
  return {
@@ -145,14 +145,14 @@ export class FadeInDown extends BaseAnimationBuilder {
145
145
  return new FadeInDown();
146
146
  }
147
147
  }
148
- export class FadeOut extends BaseAnimationBuilder {
148
+ export class FadeOut extends ComplexAnimationBuilder {
149
149
  constructor() {
150
150
  super(...arguments);
151
151
  this.build = () => {
152
152
  const delayFunction = this.getDelayFunction();
153
153
  const [animation, config] = this.getAnimationAndConfig();
154
154
  const callback = this.callbackV;
155
- const delay = this.delayV;
155
+ const delay = this.getDelay();
156
156
  return (_) => {
157
157
  'worklet';
158
158
  return {
@@ -171,14 +171,14 @@ export class FadeOut extends BaseAnimationBuilder {
171
171
  return new FadeOut();
172
172
  }
173
173
  }
174
- export class FadeOutRight extends BaseAnimationBuilder {
174
+ export class FadeOutRight extends ComplexAnimationBuilder {
175
175
  constructor() {
176
176
  super(...arguments);
177
177
  this.build = () => {
178
178
  const delayFunction = this.getDelayFunction();
179
179
  const [animation, config] = this.getAnimationAndConfig();
180
180
  const callback = this.callbackV;
181
- const delay = this.delayV;
181
+ const delay = this.getDelay();
182
182
  return () => {
183
183
  'worklet';
184
184
  return {
@@ -201,14 +201,14 @@ export class FadeOutRight extends BaseAnimationBuilder {
201
201
  return new FadeOutRight();
202
202
  }
203
203
  }
204
- export class FadeOutLeft extends BaseAnimationBuilder {
204
+ export class FadeOutLeft extends ComplexAnimationBuilder {
205
205
  constructor() {
206
206
  super(...arguments);
207
207
  this.build = () => {
208
208
  const delayFunction = this.getDelayFunction();
209
209
  const [animation, config] = this.getAnimationAndConfig();
210
210
  const callback = this.callbackV;
211
- const delay = this.delayV;
211
+ const delay = this.getDelay();
212
212
  return () => {
213
213
  'worklet';
214
214
  return {
@@ -231,14 +231,14 @@ export class FadeOutLeft extends BaseAnimationBuilder {
231
231
  return new FadeOutLeft();
232
232
  }
233
233
  }
234
- export class FadeOutUp extends BaseAnimationBuilder {
234
+ export class FadeOutUp extends ComplexAnimationBuilder {
235
235
  constructor() {
236
236
  super(...arguments);
237
237
  this.build = () => {
238
238
  const delayFunction = this.getDelayFunction();
239
239
  const [animation, config] = this.getAnimationAndConfig();
240
240
  const callback = this.callbackV;
241
- const delay = this.delayV;
241
+ const delay = this.getDelay();
242
242
  return () => {
243
243
  'worklet';
244
244
  return {
@@ -261,14 +261,14 @@ export class FadeOutUp extends BaseAnimationBuilder {
261
261
  return new FadeOutUp();
262
262
  }
263
263
  }
264
- export class FadeOutDown extends BaseAnimationBuilder {
264
+ export class FadeOutDown extends ComplexAnimationBuilder {
265
265
  constructor() {
266
266
  super(...arguments);
267
267
  this.build = () => {
268
268
  const delayFunction = this.getDelayFunction();
269
269
  const [animation, config] = this.getAnimationAndConfig();
270
270
  const callback = this.callbackV;
271
- const delay = this.delayV;
271
+ const delay = this.getDelay();
272
272
  return () => {
273
273
  'worklet';
274
274
  return {