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
@@ -1,11 +1,11 @@
1
- import { BaseAnimationBuilder } from '../animationBuilder/BaseAnimationBuilder';
2
- export class FlipInXUp extends BaseAnimationBuilder {
1
+ import { ComplexAnimationBuilder } from '../animationBuilder';
2
+ export class FlipInXUp 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
- const delay = this.delayV;
8
+ const delay = this.getDelay();
9
9
  const callback = this.callbackV;
10
10
  return (targetValues) => {
11
11
  'worklet';
@@ -33,13 +33,13 @@ export class FlipInXUp extends BaseAnimationBuilder {
33
33
  return new FlipInXUp();
34
34
  }
35
35
  }
36
- export class FlipInYLeft extends BaseAnimationBuilder {
36
+ export class FlipInYLeft extends ComplexAnimationBuilder {
37
37
  constructor() {
38
38
  super(...arguments);
39
39
  this.build = () => {
40
40
  const delayFunction = this.getDelayFunction();
41
41
  const [animation, config] = this.getAnimationAndConfig();
42
- const delay = this.delayV;
42
+ const delay = this.getDelay();
43
43
  const callback = this.callbackV;
44
44
  return (targetValues) => {
45
45
  'worklet';
@@ -67,13 +67,13 @@ export class FlipInYLeft extends BaseAnimationBuilder {
67
67
  return new FlipInYLeft();
68
68
  }
69
69
  }
70
- export class FlipInXDown extends BaseAnimationBuilder {
70
+ export class FlipInXDown extends ComplexAnimationBuilder {
71
71
  constructor() {
72
72
  super(...arguments);
73
73
  this.build = () => {
74
74
  const delayFunction = this.getDelayFunction();
75
75
  const [animation, config] = this.getAnimationAndConfig();
76
- const delay = this.delayV;
76
+ const delay = this.getDelay();
77
77
  const callback = this.callbackV;
78
78
  return (targetValues) => {
79
79
  'worklet';
@@ -101,13 +101,13 @@ export class FlipInXDown extends BaseAnimationBuilder {
101
101
  return new FlipInXDown();
102
102
  }
103
103
  }
104
- export class FlipInYRight extends BaseAnimationBuilder {
104
+ export class FlipInYRight extends ComplexAnimationBuilder {
105
105
  constructor() {
106
106
  super(...arguments);
107
107
  this.build = () => {
108
108
  const delayFunction = this.getDelayFunction();
109
109
  const [animation, config] = this.getAnimationAndConfig();
110
- const delay = this.delayV;
110
+ const delay = this.getDelay();
111
111
  const callback = this.callbackV;
112
112
  return (targetValues) => {
113
113
  'worklet';
@@ -135,13 +135,13 @@ export class FlipInYRight extends BaseAnimationBuilder {
135
135
  return new FlipInYRight();
136
136
  }
137
137
  }
138
- export class FlipInEasyX extends BaseAnimationBuilder {
138
+ export class FlipInEasyX extends ComplexAnimationBuilder {
139
139
  constructor() {
140
140
  super(...arguments);
141
141
  this.build = () => {
142
142
  const delayFunction = this.getDelayFunction();
143
143
  const [animation, config] = this.getAnimationAndConfig();
144
- const delay = this.delayV;
144
+ const delay = this.getDelay();
145
145
  const callback = this.callbackV;
146
146
  return () => {
147
147
  'worklet';
@@ -164,13 +164,13 @@ export class FlipInEasyX extends BaseAnimationBuilder {
164
164
  return new FlipInEasyX();
165
165
  }
166
166
  }
167
- export class FlipInEasyY extends BaseAnimationBuilder {
167
+ export class FlipInEasyY extends ComplexAnimationBuilder {
168
168
  constructor() {
169
169
  super(...arguments);
170
170
  this.build = () => {
171
171
  const delayFunction = this.getDelayFunction();
172
172
  const [animation, config] = this.getAnimationAndConfig();
173
- const delay = this.delayV;
173
+ const delay = this.getDelay();
174
174
  const callback = this.callbackV;
175
175
  return () => {
176
176
  'worklet';
@@ -193,13 +193,13 @@ export class FlipInEasyY extends BaseAnimationBuilder {
193
193
  return new FlipInEasyY();
194
194
  }
195
195
  }
196
- export class FlipOutXUp extends BaseAnimationBuilder {
196
+ export class FlipOutXUp extends ComplexAnimationBuilder {
197
197
  constructor() {
198
198
  super(...arguments);
199
199
  this.build = () => {
200
200
  const delayFunction = this.getDelayFunction();
201
201
  const [animation, config] = this.getAnimationAndConfig();
202
- const delay = this.delayV;
202
+ const delay = this.getDelay();
203
203
  const callback = this.callbackV;
204
204
  return (targetValues) => {
205
205
  'worklet';
@@ -229,13 +229,13 @@ export class FlipOutXUp extends BaseAnimationBuilder {
229
229
  return new FlipOutXUp();
230
230
  }
231
231
  }
232
- export class FlipOutYLeft extends BaseAnimationBuilder {
232
+ export class FlipOutYLeft extends ComplexAnimationBuilder {
233
233
  constructor() {
234
234
  super(...arguments);
235
235
  this.build = () => {
236
236
  const delayFunction = this.getDelayFunction();
237
237
  const [animation, config] = this.getAnimationAndConfig();
238
- const delay = this.delayV;
238
+ const delay = this.getDelay();
239
239
  const callback = this.callbackV;
240
240
  return (targetValues) => {
241
241
  'worklet';
@@ -265,13 +265,13 @@ export class FlipOutYLeft extends BaseAnimationBuilder {
265
265
  return new FlipOutYLeft();
266
266
  }
267
267
  }
268
- export class FlipOutXDown extends BaseAnimationBuilder {
268
+ export class FlipOutXDown extends ComplexAnimationBuilder {
269
269
  constructor() {
270
270
  super(...arguments);
271
271
  this.build = () => {
272
272
  const delayFunction = this.getDelayFunction();
273
273
  const [animation, config] = this.getAnimationAndConfig();
274
- const delay = this.delayV;
274
+ const delay = this.getDelay();
275
275
  const callback = this.callbackV;
276
276
  return (targetValues) => {
277
277
  'worklet';
@@ -301,13 +301,13 @@ export class FlipOutXDown extends BaseAnimationBuilder {
301
301
  return new FlipOutXDown();
302
302
  }
303
303
  }
304
- export class FlipOutYRight extends BaseAnimationBuilder {
304
+ export class FlipOutYRight extends ComplexAnimationBuilder {
305
305
  constructor() {
306
306
  super(...arguments);
307
307
  this.build = () => {
308
308
  const delayFunction = this.getDelayFunction();
309
309
  const [animation, config] = this.getAnimationAndConfig();
310
- const delay = this.delayV;
310
+ const delay = this.getDelay();
311
311
  const callback = this.callbackV;
312
312
  return (targetValues) => {
313
313
  'worklet';
@@ -337,13 +337,13 @@ export class FlipOutYRight extends BaseAnimationBuilder {
337
337
  return new FlipOutYRight();
338
338
  }
339
339
  }
340
- export class FlipOutEasyX extends BaseAnimationBuilder {
340
+ export class FlipOutEasyX extends ComplexAnimationBuilder {
341
341
  constructor() {
342
342
  super(...arguments);
343
343
  this.build = () => {
344
344
  const delayFunction = this.getDelayFunction();
345
345
  const [animation, config] = this.getAnimationAndConfig();
346
- const delay = this.delayV;
346
+ const delay = this.getDelay();
347
347
  const callback = this.callbackV;
348
348
  return () => {
349
349
  'worklet';
@@ -366,13 +366,13 @@ export class FlipOutEasyX extends BaseAnimationBuilder {
366
366
  return new FlipOutEasyX();
367
367
  }
368
368
  }
369
- export class FlipOutEasyY extends BaseAnimationBuilder {
369
+ export class FlipOutEasyY extends ComplexAnimationBuilder {
370
370
  constructor() {
371
371
  super(...arguments);
372
372
  this.build = () => {
373
373
  const delayFunction = this.getDelayFunction();
374
374
  const [animation, config] = this.getAnimationAndConfig();
375
- const delay = this.delayV;
375
+ const delay = this.getDelay();
376
376
  const callback = this.callbackV;
377
377
  return () => {
378
378
  'worklet';
@@ -1,25 +1,27 @@
1
1
  import { Dimensions } from 'react-native';
2
2
  import { withSequence, withTiming } from '../../animation';
3
- import { BaseAnimationBuilder } from '../animationBuilder/BaseAnimationBuilder';
3
+ import { ComplexAnimationBuilder } from '../animationBuilder';
4
4
  const { width } = Dimensions.get('window');
5
- export class LightSpeedInRight extends BaseAnimationBuilder {
5
+ export class LightSpeedInRight extends ComplexAnimationBuilder {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  this.build = () => {
9
9
  const delayFunction = this.getDelayFunction();
10
10
  const [animation, config] = this.getAnimationAndConfig();
11
- const delay = this.delayV;
12
- const duration = this.durationV ? this.durationV : 250;
11
+ const delay = this.getDelay();
12
+ const duration = this.getDuration();
13
13
  const callback = this.callbackV;
14
14
  return () => {
15
15
  'worklet';
16
16
  return {
17
17
  animations: {
18
- opacity: delayFunction(delay, withTiming(1, { duration: duration * 1.5 })),
18
+ opacity: delayFunction(delay, withTiming(1, { duration: duration })),
19
19
  transform: [
20
- { translateX: delayFunction(delay, animation(0, config)) },
21
20
  {
22
- skewX: delayFunction(delay, withSequence(withTiming('10deg', { duration: duration }), withTiming('-5deg', { duration: duration / 5 }), withTiming('0deg', { duration: duration / 5 }))),
21
+ translateX: delayFunction(delay, animation(0, Object.assign(Object.assign({}, config), { duration: duration * 0.7 }))),
22
+ },
23
+ {
24
+ skewX: delayFunction(delay, withSequence(withTiming('10deg', { duration: duration * 0.7 }), withTiming('-5deg', { duration: duration * 0.15 }), withTiming('0deg', { duration: duration * 0.15 }))),
23
25
  },
24
26
  ],
25
27
  },
@@ -36,26 +38,26 @@ export class LightSpeedInRight extends BaseAnimationBuilder {
36
38
  return new LightSpeedInRight();
37
39
  }
38
40
  }
39
- export class LightSpeedInLeft extends BaseAnimationBuilder {
41
+ export class LightSpeedInLeft extends ComplexAnimationBuilder {
40
42
  constructor() {
41
43
  super(...arguments);
42
44
  this.build = () => {
43
45
  const delayFunction = this.getDelayFunction();
44
46
  const [animation, config] = this.getAnimationAndConfig();
45
- const delay = this.delayV;
46
- const duration = this.durationV ? this.durationV : 250;
47
+ const delay = this.getDelay();
48
+ const duration = this.getDuration();
47
49
  const callback = this.callbackV;
48
50
  return () => {
49
51
  'worklet';
50
52
  return {
51
53
  animations: {
52
- opacity: delayFunction(delay, withTiming(1, { duration: duration * 1.5 })),
54
+ opacity: delayFunction(delay, withTiming(1, { duration: duration })),
53
55
  transform: [
54
56
  {
55
- translateX: delayFunction(delay, animation(0, config)),
57
+ translateX: delayFunction(delay, animation(0, Object.assign(Object.assign({}, config), { duration: duration * 0.7 }))),
56
58
  },
57
59
  {
58
- skewX: delayFunction(delay, withSequence(withTiming('-10deg', { duration: duration }), withTiming('5deg', { duration: duration / 5 }), withTiming('0deg', { duration: duration / 5 }))),
60
+ skewX: delayFunction(delay, withSequence(withTiming('-10deg', { duration: duration * 0.7 }), withTiming('5deg', { duration: duration * 0.15 }), withTiming('0deg', { duration: duration * 0.15 }))),
59
61
  },
60
62
  ],
61
63
  },
@@ -72,13 +74,13 @@ export class LightSpeedInLeft extends BaseAnimationBuilder {
72
74
  return new LightSpeedInLeft();
73
75
  }
74
76
  }
75
- export class LightSpeedOutRight extends BaseAnimationBuilder {
77
+ export class LightSpeedOutRight extends ComplexAnimationBuilder {
76
78
  constructor() {
77
79
  super(...arguments);
78
80
  this.build = () => {
79
81
  const delayFunction = this.getDelayFunction();
80
82
  const [animation, config] = this.getAnimationAndConfig();
81
- const delay = this.delayV;
83
+ const delay = this.getDelay();
82
84
  const callback = this.callbackV;
83
85
  return () => {
84
86
  'worklet';
@@ -107,13 +109,13 @@ export class LightSpeedOutRight extends BaseAnimationBuilder {
107
109
  return new LightSpeedOutRight();
108
110
  }
109
111
  }
110
- export class LightSpeedOutLeft extends BaseAnimationBuilder {
112
+ export class LightSpeedOutLeft extends ComplexAnimationBuilder {
111
113
  constructor() {
112
114
  super(...arguments);
113
115
  this.build = () => {
114
116
  const delayFunction = this.getDelayFunction();
115
117
  const [animation, config] = this.getAnimationAndConfig();
116
- const delay = this.delayV;
118
+ const delay = this.getDelay();
117
119
  const callback = this.callbackV;
118
120
  return () => {
119
121
  'worklet';
@@ -1,11 +1,11 @@
1
- import { BaseAnimationBuilder } from '../animationBuilder/BaseAnimationBuilder';
2
- export class PinwheelIn extends BaseAnimationBuilder {
1
+ import { ComplexAnimationBuilder } from '../animationBuilder';
2
+ export class PinwheelIn 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
- const delay = this.delayV;
8
+ const delay = this.getDelay();
9
9
  const callback = this.callbackV;
10
10
  return (_values) => {
11
11
  'worklet';
@@ -41,13 +41,13 @@ export class PinwheelIn extends BaseAnimationBuilder {
41
41
  return new PinwheelIn();
42
42
  }
43
43
  }
44
- export class PinwheelOut extends BaseAnimationBuilder {
44
+ export class PinwheelOut extends ComplexAnimationBuilder {
45
45
  constructor() {
46
46
  super(...arguments);
47
47
  this.build = () => {
48
48
  const delayFunction = this.getDelayFunction();
49
49
  const [animation, config] = this.getAnimationAndConfig();
50
- const delay = this.delayV;
50
+ const delay = this.getDelay();
51
51
  const callback = this.callbackV;
52
52
  return (_values) => {
53
53
  'worklet';
@@ -1,13 +1,13 @@
1
1
  import { Dimensions } from 'react-native';
2
- import { BaseAnimationBuilder } from '../animationBuilder/BaseAnimationBuilder';
2
+ import { ComplexAnimationBuilder } from '../animationBuilder';
3
3
  const { width } = Dimensions.get('window');
4
- export class RollInLeft extends BaseAnimationBuilder {
4
+ export class RollInLeft extends ComplexAnimationBuilder {
5
5
  constructor() {
6
6
  super(...arguments);
7
7
  this.build = () => {
8
8
  const delayFunction = this.getDelayFunction();
9
9
  const [animation, config] = this.getAnimationAndConfig();
10
- const delay = this.delayV;
10
+ const delay = this.getDelay();
11
11
  const callback = this.callbackV;
12
12
  return () => {
13
13
  'worklet';
@@ -30,13 +30,13 @@ export class RollInLeft extends BaseAnimationBuilder {
30
30
  return new RollInLeft();
31
31
  }
32
32
  }
33
- export class RollInRight extends BaseAnimationBuilder {
33
+ export class RollInRight extends ComplexAnimationBuilder {
34
34
  constructor() {
35
35
  super(...arguments);
36
36
  this.build = () => {
37
37
  const delayFunction = this.getDelayFunction();
38
38
  const [animation, config] = this.getAnimationAndConfig();
39
- const delay = this.delayV;
39
+ const delay = this.getDelay();
40
40
  const callback = this.callbackV;
41
41
  return () => {
42
42
  'worklet';
@@ -59,13 +59,13 @@ export class RollInRight extends BaseAnimationBuilder {
59
59
  return new RollInRight();
60
60
  }
61
61
  }
62
- export class RollOutLeft extends BaseAnimationBuilder {
62
+ export class RollOutLeft extends ComplexAnimationBuilder {
63
63
  constructor() {
64
64
  super(...arguments);
65
65
  this.build = () => {
66
66
  const delayFunction = this.getDelayFunction();
67
67
  const [animation, config] = this.getAnimationAndConfig();
68
- const delay = this.delayV;
68
+ const delay = this.getDelay();
69
69
  const callback = this.callbackV;
70
70
  return () => {
71
71
  'worklet';
@@ -88,13 +88,13 @@ export class RollOutLeft extends BaseAnimationBuilder {
88
88
  return new RollOutLeft();
89
89
  }
90
90
  }
91
- export class RollOutRight extends BaseAnimationBuilder {
91
+ export class RollOutRight extends ComplexAnimationBuilder {
92
92
  constructor() {
93
93
  super(...arguments);
94
94
  this.build = () => {
95
95
  const delayFunction = this.getDelayFunction();
96
96
  const [animation, config] = this.getAnimationAndConfig();
97
- const delay = this.delayV;
97
+ const delay = this.getDelay();
98
98
  const callback = this.callbackV;
99
99
  return () => {
100
100
  'worklet';
@@ -1,11 +1,11 @@
1
- import { BaseAnimationBuilder } from '../animationBuilder/BaseAnimationBuilder';
2
- export class RotateInDownLeft extends BaseAnimationBuilder {
1
+ import { ComplexAnimationBuilder } from '../animationBuilder';
2
+ export class RotateInDownLeft 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
- const delay = this.delayV;
8
+ const delay = this.getDelay();
9
9
  const callback = this.callbackV;
10
10
  return (values) => {
11
11
  'worklet';
@@ -35,13 +35,13 @@ export class RotateInDownLeft extends BaseAnimationBuilder {
35
35
  return new RotateInDownLeft();
36
36
  }
37
37
  }
38
- export class RotateInDownRight extends BaseAnimationBuilder {
38
+ export class RotateInDownRight extends ComplexAnimationBuilder {
39
39
  constructor() {
40
40
  super(...arguments);
41
41
  this.build = () => {
42
42
  const delayFunction = this.getDelayFunction();
43
43
  const [animation, config] = this.getAnimationAndConfig();
44
- const delay = this.delayV;
44
+ const delay = this.getDelay();
45
45
  const callback = this.callbackV;
46
46
  return (values) => {
47
47
  'worklet';
@@ -71,13 +71,13 @@ export class RotateInDownRight extends BaseAnimationBuilder {
71
71
  return new RotateInDownRight();
72
72
  }
73
73
  }
74
- export class RotateInUpLeft extends BaseAnimationBuilder {
74
+ export class RotateInUpLeft extends ComplexAnimationBuilder {
75
75
  constructor() {
76
76
  super(...arguments);
77
77
  this.build = () => {
78
78
  const delayFunction = this.getDelayFunction();
79
79
  const [animation, config] = this.getAnimationAndConfig();
80
- const delay = this.delayV;
80
+ const delay = this.getDelay();
81
81
  const callback = this.callbackV;
82
82
  return (values) => {
83
83
  'worklet';
@@ -107,13 +107,13 @@ export class RotateInUpLeft extends BaseAnimationBuilder {
107
107
  return new RotateInUpLeft();
108
108
  }
109
109
  }
110
- export class RotateInUpRight extends BaseAnimationBuilder {
110
+ export class RotateInUpRight extends ComplexAnimationBuilder {
111
111
  constructor() {
112
112
  super(...arguments);
113
113
  this.build = () => {
114
114
  const delayFunction = this.getDelayFunction();
115
115
  const [animation, config] = this.getAnimationAndConfig();
116
- const delay = this.delayV;
116
+ const delay = this.getDelay();
117
117
  const callback = this.callbackV;
118
118
  return (values) => {
119
119
  'worklet';
@@ -143,13 +143,13 @@ export class RotateInUpRight extends BaseAnimationBuilder {
143
143
  return new RotateInUpRight();
144
144
  }
145
145
  }
146
- export class RotateOutDownLeft extends BaseAnimationBuilder {
146
+ export class RotateOutDownLeft extends ComplexAnimationBuilder {
147
147
  constructor() {
148
148
  super(...arguments);
149
149
  this.build = () => {
150
150
  const delayFunction = this.getDelayFunction();
151
151
  const [animation, config] = this.getAnimationAndConfig();
152
- const delay = this.delayV;
152
+ const delay = this.getDelay();
153
153
  const callback = this.callbackV;
154
154
  return (values) => {
155
155
  'worklet';
@@ -179,13 +179,13 @@ export class RotateOutDownLeft extends BaseAnimationBuilder {
179
179
  return new RotateOutDownLeft();
180
180
  }
181
181
  }
182
- export class RotateOutDownRight extends BaseAnimationBuilder {
182
+ export class RotateOutDownRight extends ComplexAnimationBuilder {
183
183
  constructor() {
184
184
  super(...arguments);
185
185
  this.build = () => {
186
186
  const delayFunction = this.getDelayFunction();
187
187
  const [animation, config] = this.getAnimationAndConfig();
188
- const delay = this.delayV;
188
+ const delay = this.getDelay();
189
189
  const callback = this.callbackV;
190
190
  return (values) => {
191
191
  'worklet';
@@ -215,13 +215,13 @@ export class RotateOutDownRight extends BaseAnimationBuilder {
215
215
  return new RotateOutDownRight();
216
216
  }
217
217
  }
218
- export class RotateOutUpLeft extends BaseAnimationBuilder {
218
+ export class RotateOutUpLeft extends ComplexAnimationBuilder {
219
219
  constructor() {
220
220
  super(...arguments);
221
221
  this.build = () => {
222
222
  const delayFunction = this.getDelayFunction();
223
223
  const [animation, config] = this.getAnimationAndConfig();
224
- const delay = this.delayV;
224
+ const delay = this.getDelay();
225
225
  const callback = this.callbackV;
226
226
  return (values) => {
227
227
  'worklet';
@@ -251,13 +251,13 @@ export class RotateOutUpLeft extends BaseAnimationBuilder {
251
251
  return new RotateOutUpLeft();
252
252
  }
253
253
  }
254
- export class RotateOutUpRight extends BaseAnimationBuilder {
254
+ export class RotateOutUpRight extends ComplexAnimationBuilder {
255
255
  constructor() {
256
256
  super(...arguments);
257
257
  this.build = () => {
258
258
  const delayFunction = this.getDelayFunction();
259
259
  const [animation, config] = this.getAnimationAndConfig();
260
- const delay = this.delayV;
260
+ const delay = this.getDelay();
261
261
  const callback = this.callbackV;
262
262
  return (values) => {
263
263
  'worklet';
@@ -1,13 +1,13 @@
1
- import { BaseAnimationBuilder } from '../animationBuilder/BaseAnimationBuilder';
2
1
  import { Dimensions } from 'react-native';
2
+ import { ComplexAnimationBuilder } from '../animationBuilder';
3
3
  const { width, height } = Dimensions.get('window');
4
- export class SlideInRight extends BaseAnimationBuilder {
4
+ export class SlideInRight extends ComplexAnimationBuilder {
5
5
  constructor() {
6
6
  super(...arguments);
7
7
  this.build = () => {
8
8
  const delayFunction = this.getDelayFunction();
9
9
  const [animation, config] = this.getAnimationAndConfig();
10
- const delay = this.delayV;
10
+ const delay = this.getDelay();
11
11
  const callback = this.callbackV;
12
12
  return (values) => {
13
13
  'worklet';
@@ -27,13 +27,13 @@ export class SlideInRight extends BaseAnimationBuilder {
27
27
  return new SlideInRight();
28
28
  }
29
29
  }
30
- export class SlideInLeft extends BaseAnimationBuilder {
30
+ export class SlideInLeft extends ComplexAnimationBuilder {
31
31
  constructor() {
32
32
  super(...arguments);
33
33
  this.build = () => {
34
34
  const delayFunction = this.getDelayFunction();
35
35
  const [animation, config] = this.getAnimationAndConfig();
36
- const delay = this.delayV;
36
+ const delay = this.getDelay();
37
37
  const callback = this.callbackV;
38
38
  return (values) => {
39
39
  'worklet';
@@ -53,13 +53,13 @@ export class SlideInLeft extends BaseAnimationBuilder {
53
53
  return new SlideInLeft();
54
54
  }
55
55
  }
56
- export class SlideOutRight extends BaseAnimationBuilder {
56
+ export class SlideOutRight extends ComplexAnimationBuilder {
57
57
  constructor() {
58
58
  super(...arguments);
59
59
  this.build = () => {
60
60
  const delayFunction = this.getDelayFunction();
61
61
  const [animation, config] = this.getAnimationAndConfig();
62
- const delay = this.delayV;
62
+ const delay = this.getDelay();
63
63
  const callback = this.callbackV;
64
64
  return (values) => {
65
65
  'worklet';
@@ -79,13 +79,13 @@ export class SlideOutRight extends BaseAnimationBuilder {
79
79
  return new SlideOutRight();
80
80
  }
81
81
  }
82
- export class SlideOutLeft extends BaseAnimationBuilder {
82
+ export class SlideOutLeft extends ComplexAnimationBuilder {
83
83
  constructor() {
84
84
  super(...arguments);
85
85
  this.build = () => {
86
86
  const delayFunction = this.getDelayFunction();
87
87
  const [animation, config] = this.getAnimationAndConfig();
88
- const delay = this.delayV;
88
+ const delay = this.getDelay();
89
89
  const callback = this.callbackV;
90
90
  return (values) => {
91
91
  'worklet';
@@ -105,13 +105,13 @@ export class SlideOutLeft extends BaseAnimationBuilder {
105
105
  return new SlideOutLeft();
106
106
  }
107
107
  }
108
- export class SlideInUp extends BaseAnimationBuilder {
108
+ export class SlideInUp extends ComplexAnimationBuilder {
109
109
  constructor() {
110
110
  super(...arguments);
111
111
  this.build = () => {
112
112
  const delayFunction = this.getDelayFunction();
113
113
  const [animation, config] = this.getAnimationAndConfig();
114
- const delay = this.delayV;
114
+ const delay = this.getDelay();
115
115
  const callback = this.callbackV;
116
116
  return (values) => {
117
117
  'worklet';
@@ -120,7 +120,7 @@ export class SlideInUp extends BaseAnimationBuilder {
120
120
  originY: delayFunction(delay, animation(values.originY, config)),
121
121
  },
122
122
  initialValues: {
123
- originY: height,
123
+ originY: -height,
124
124
  },
125
125
  callback: callback,
126
126
  };
@@ -131,13 +131,13 @@ export class SlideInUp extends BaseAnimationBuilder {
131
131
  return new SlideInUp();
132
132
  }
133
133
  }
134
- export class SlideInDown extends BaseAnimationBuilder {
134
+ export class SlideInDown extends ComplexAnimationBuilder {
135
135
  constructor() {
136
136
  super(...arguments);
137
137
  this.build = () => {
138
138
  const delayFunction = this.getDelayFunction();
139
139
  const [animation, config] = this.getAnimationAndConfig();
140
- const delay = this.delayV;
140
+ const delay = this.getDelay();
141
141
  const callback = this.callbackV;
142
142
  return (values) => {
143
143
  'worklet';
@@ -146,7 +146,7 @@ export class SlideInDown extends BaseAnimationBuilder {
146
146
  originY: delayFunction(delay, animation(values.originY, config)),
147
147
  },
148
148
  initialValues: {
149
- originY: values.originY - height,
149
+ originY: values.originY + height,
150
150
  },
151
151
  callback: callback,
152
152
  };
@@ -157,13 +157,13 @@ export class SlideInDown extends BaseAnimationBuilder {
157
157
  return new SlideInDown();
158
158
  }
159
159
  }
160
- export class SlideOutUp extends BaseAnimationBuilder {
160
+ export class SlideOutUp extends ComplexAnimationBuilder {
161
161
  constructor() {
162
162
  super(...arguments);
163
163
  this.build = () => {
164
164
  const delayFunction = this.getDelayFunction();
165
165
  const [animation, config] = this.getAnimationAndConfig();
166
- const delay = this.delayV;
166
+ const delay = this.getDelay();
167
167
  const callback = this.callbackV;
168
168
  return (values) => {
169
169
  'worklet';
@@ -181,13 +181,13 @@ export class SlideOutUp extends BaseAnimationBuilder {
181
181
  return new SlideOutUp();
182
182
  }
183
183
  }
184
- export class SlideOutDown extends BaseAnimationBuilder {
184
+ export class SlideOutDown extends ComplexAnimationBuilder {
185
185
  constructor() {
186
186
  super(...arguments);
187
187
  this.build = () => {
188
188
  const delayFunction = this.getDelayFunction();
189
189
  const [animation, config] = this.getAnimationAndConfig();
190
- const delay = this.delayV;
190
+ const delay = this.getDelay();
191
191
  const callback = this.callbackV;
192
192
  return (values) => {
193
193
  'worklet';