react-native-reanimated 1.13.0 → 1.13.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 (86) hide show
  1. package/RNReanimated.podspec +1 -1
  2. package/android/build.gradle +11 -39
  3. package/lib/commonjs/core/AnimatedCode.js +1 -1
  4. package/lib/commonjs/core/AnimatedCode.js.map +1 -1
  5. package/lib/commonjs/core/AnimatedDebug.js +8 -2
  6. package/lib/commonjs/core/AnimatedDebug.js.map +1 -1
  7. package/lib/commonjs/core/AnimatedNode.js +3 -1
  8. package/lib/commonjs/core/AnimatedNode.js.map +1 -1
  9. package/lib/commonjs/derived/interpolate.js +2 -0
  10. package/lib/commonjs/derived/interpolate.js.map +1 -1
  11. package/lib/module/core/AnimatedCode.js +1 -1
  12. package/lib/module/core/AnimatedCode.js.map +1 -1
  13. package/lib/module/core/AnimatedDebug.js +7 -2
  14. package/lib/module/core/AnimatedDebug.js.map +1 -1
  15. package/lib/module/core/AnimatedNode.js +2 -1
  16. package/lib/module/core/AnimatedNode.js.map +1 -1
  17. package/lib/module/derived/interpolate.js +2 -0
  18. package/lib/module/derived/interpolate.js.map +1 -1
  19. package/mock.js +1 -0
  20. package/package.json +5 -2
  21. package/react-native-reanimated.d.ts +6 -5
  22. package/src/core/AnimatedCode.js +1 -1
  23. package/src/core/AnimatedDebug.js +6 -2
  24. package/src/core/AnimatedNode.js +4 -1
  25. package/src/derived/interpolate.js +2 -0
  26. package/android/README.md +0 -15
  27. package/lib/typescript/Animated.test.d.ts +0 -1
  28. package/lib/typescript/ConfigHelper.d.ts +0 -6
  29. package/lib/typescript/Easing.d.ts +0 -151
  30. package/lib/typescript/ReanimatedEventEmitter.d.ts +0 -2
  31. package/lib/typescript/ReanimatedModule.d.ts +0 -2
  32. package/lib/typescript/ReanimatedModule.macos.d.ts +0 -2
  33. package/lib/typescript/ReanimatedModule.native.d.ts +0 -2
  34. package/lib/typescript/ReanimatedModule.windows.d.ts +0 -2
  35. package/lib/typescript/ReanimatedModuleCompat.d.ts +0 -19
  36. package/lib/typescript/SpringConfig.d.ts +0 -8
  37. package/lib/typescript/__mocks__/ReanimatedEventEmitter.d.ts +0 -5
  38. package/lib/typescript/__mocks__/ReanimatedModule.native.d.ts +0 -8
  39. package/lib/typescript/animations/Animation.d.ts +0 -22
  40. package/lib/typescript/animations/SpringUtils.d.ts +0 -29
  41. package/lib/typescript/animations/backwardCompatibleAnimWrapper.d.ts +0 -5
  42. package/lib/typescript/animations/decay.d.ts +0 -9
  43. package/lib/typescript/animations/spring.d.ts +0 -18
  44. package/lib/typescript/animations/timing.d.ts +0 -1
  45. package/lib/typescript/base.d.ts +0 -13
  46. package/lib/typescript/core/AnimatedAlways.d.ts +0 -8
  47. package/lib/typescript/core/AnimatedBezier.d.ts +0 -6
  48. package/lib/typescript/core/AnimatedBlock.d.ts +0 -4
  49. package/lib/typescript/core/AnimatedCall.d.ts +0 -3
  50. package/lib/typescript/core/AnimatedCallFunc.d.ts +0 -12
  51. package/lib/typescript/core/AnimatedClock.d.ts +0 -14
  52. package/lib/typescript/core/AnimatedClockTest.d.ts +0 -7
  53. package/lib/typescript/core/AnimatedCode.d.ts +0 -6
  54. package/lib/typescript/core/AnimatedConcat.d.ts +0 -3
  55. package/lib/typescript/core/AnimatedCond.d.ts +0 -3
  56. package/lib/typescript/core/AnimatedDebug.d.ts +0 -2
  57. package/lib/typescript/core/AnimatedFunction.d.ts +0 -3
  58. package/lib/typescript/core/AnimatedNode.d.ts +0 -38
  59. package/lib/typescript/core/AnimatedOperator.d.ts +0 -12
  60. package/lib/typescript/core/AnimatedParam.d.ts +0 -16
  61. package/lib/typescript/core/AnimatedProps.d.ts +0 -1
  62. package/lib/typescript/core/AnimatedSet.d.ts +0 -4
  63. package/lib/typescript/core/AnimatedStartClock.d.ts +0 -7
  64. package/lib/typescript/core/AnimatedStopClock.d.ts +0 -7
  65. package/lib/typescript/core/AnimatedStyle.d.ts +0 -12
  66. package/lib/typescript/core/AnimatedTransform.d.ts +0 -1
  67. package/lib/typescript/core/AnimatedValue.d.ts +0 -10
  68. package/lib/typescript/core/Core.test.d.ts +0 -1
  69. package/lib/typescript/core/InternalAnimatedValue.d.ts +0 -23
  70. package/lib/typescript/core/__mocks__/AnimatedProps.d.ts +0 -1
  71. package/lib/typescript/core/createEventObjectProxyPolyfill.d.ts +0 -45
  72. package/lib/typescript/derived/__mocks__/evaluateOnce.d.ts +0 -1
  73. package/lib/typescript/derived/acc.d.ts +0 -1
  74. package/lib/typescript/derived/color.d.ts +0 -2
  75. package/lib/typescript/derived/diff.d.ts +0 -1
  76. package/lib/typescript/derived/diffClamp.d.ts +0 -1
  77. package/lib/typescript/derived/evaluateOnce.d.ts +0 -9
  78. package/lib/typescript/derived/index.d.ts +0 -8
  79. package/lib/typescript/derived/interpolate.d.ts +0 -14
  80. package/lib/typescript/derived/interpolate.test.d.ts +0 -1
  81. package/lib/typescript/derived/interpolateColors.d.ts +0 -12
  82. package/lib/typescript/derived/onChange.d.ts +0 -3
  83. package/lib/typescript/derived/useCode.d.ts +0 -15
  84. package/lib/typescript/types.d.ts +0 -3
  85. package/lib/typescript/useValue.d.ts +0 -3
  86. package/lib/typescript/val.d.ts +0 -1
@@ -1,23 +0,0 @@
1
- import AnimatedNode from './AnimatedNode';
2
- import { Value, Adaptable } from '../types';
3
- interface InternalAnimatedValue<T extends Value> {
4
- _startingValue: any;
5
- _value: any;
6
- _animation: any;
7
- _constant: any;
8
- }
9
- /**
10
- * This class has been made internal in order to omit dependencies' cycles which
11
- * were caused by imperative setValue and interpolate – they are currently exposed with AnimatedValue.js
12
- */
13
- declare class InternalAnimatedValue<T extends Value> extends AnimatedNode<T> {
14
- static valueForConstant(number: number): any;
15
- constructor(value?: T, constant?: boolean);
16
- __detach(): void;
17
- __detachAnimation(animation: any): void;
18
- __attachAnimation(animation: any): void;
19
- __onEvaluate(): any;
20
- setValue(value: Adaptable<T>): void;
21
- _updateValue(value: any): void;
22
- }
23
- export default InternalAnimatedValue;
@@ -1 +0,0 @@
1
- export function createOrReusePropsNode(props: any, callback: any, oldNode: any): any;
@@ -1,45 +0,0 @@
1
- export default function createEventObjectProxyPolyfill(): {
2
- translationX: {};
3
- translationY: {};
4
- state: {};
5
- oldState: {};
6
- absoluteX: {};
7
- absoluteY: {};
8
- x: {};
9
- y: {};
10
- velocityX: {};
11
- velocityY: {};
12
- scale: {};
13
- focalX: {};
14
- focalY: {};
15
- rotation: {};
16
- anchorX: {};
17
- anchorY: {};
18
- velocity: {};
19
- numberOfPointers: {};
20
- layout: {
21
- x: {};
22
- y: {};
23
- width: {};
24
- height: {};
25
- };
26
- contentOffset: {
27
- y: {};
28
- x: {};
29
- };
30
- layoutMeasurement: {
31
- width: {};
32
- height: {};
33
- };
34
- contentSize: {
35
- width: {};
36
- height: {};
37
- };
38
- zoomScale: {};
39
- contentInset: {
40
- right: {};
41
- top: {};
42
- left: {};
43
- bottom: {};
44
- };
45
- };
@@ -1 +0,0 @@
1
- export function evaluateOnce(node: any, children: any[], callback: any): void;
@@ -1 +0,0 @@
1
- export default function acc(v: any): import("../core/AnimatedNode").default<number>;
@@ -1,2 +0,0 @@
1
- export default function color(r: any, g: any, b: any, a?: number): AnimatedNode<number> | AnimatedNode<string>;
2
- import AnimatedNode from "../core/AnimatedNode";
@@ -1 +0,0 @@
1
- export default function diff(v: any): import("../core/AnimatedNode").default<number>;
@@ -1 +0,0 @@
1
- export default function diffClamp(a: any, minVal: any, maxVal: any): import("../core/AnimatedNode").default<import("../types").Value>;
@@ -1,9 +0,0 @@
1
- import AnimatedNode from '../core/AnimatedNode';
2
- import { Value } from '../types';
3
- /**
4
- * evaluate given node and notify children
5
- * @param node - node to be evaluated
6
- * @param input - nodes (or one node) representing values which states input for node.
7
- * @param [callback] - after callback
8
- */
9
- export declare function evaluateOnce<T extends Value>(node: AnimatedNode<T>, input?: AnimatedNode<T> | AnimatedNode<T>[], callback?: () => void): void;
@@ -1,8 +0,0 @@
1
- export { default as acc } from "./acc";
2
- export { default as color } from "./color";
3
- export { default as diff } from "./diff";
4
- export { default as diffClamp } from "./diffClamp";
5
- export { default as interpolateColors } from "./interpolateColors";
6
- export { default as onChange } from "./onChange";
7
- export { default as useCode } from "./useCode";
8
- export { default as interpolate, Extrapolate } from "./interpolate";
@@ -1,14 +0,0 @@
1
- import type { Adaptable } from '../types';
2
- export declare enum Extrapolate {
3
- EXTEND = "extend",
4
- CLAMP = "clamp",
5
- IDENTITY = "identity"
6
- }
7
- export interface InterpolationConfig {
8
- inputRange: ReadonlyArray<Adaptable<number>>;
9
- outputRange: ReadonlyArray<Adaptable<number>>;
10
- extrapolate?: Extrapolate;
11
- extrapolateLeft?: Extrapolate;
12
- extrapolateRight?: Extrapolate;
13
- }
14
- export default function interpolate(value: Adaptable<number>, { inputRange, outputRange, extrapolate, extrapolateLeft, extrapolateRight, }: InterpolationConfig): any;
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Use this if you want to interpolate an `Animated.Value` into color values.
3
- *
4
- * #### Why is this needed?
5
- *
6
- * Unfortunately, if you'll pass color values directly into the `outputRange` option
7
- * of `interpolate()` function, that won't really work (at least at the moment).
8
- * See https://github.com/software-mansion/react-native-reanimated/issues/181 .
9
- *
10
- * So, for now you can just use this helper instead.
11
- */
12
- export default function interpolateColors(animationValue: any, options: any): import("../core/AnimatedNode").default<number> | import("../core/AnimatedNode").default<string>;
@@ -1,3 +0,0 @@
1
- export var __esModule: boolean;
2
- declare function _default(value: any, action: any): import("../core/AnimatedNode").default<number>;
3
- export default _default;
@@ -1,15 +0,0 @@
1
- /**
2
- * @callback NodeFactory
3
- * Function to create a node or an array of nodes.
4
- * @returns {(Node[] | Node | null | undefined | Boolean)}
5
- */
6
- /**
7
- * React hook to run a node.
8
- * @param {NodeFactory} nodeFactory Function to build the node to run.
9
- * @param dependencies Array of dependencies. Refresh the node on changes.
10
- */
11
- export default function useCode(nodeFactory: NodeFactory, dependencies: any): void;
12
- /**
13
- * Function to create a node or an array of nodes.
14
- */
15
- export type NodeFactory = () => (Node[] | Node | null | undefined | boolean);
@@ -1,3 +0,0 @@
1
- import AnimatedNode from './core/AnimatedNode';
2
- export declare type Value = string | number | boolean;
3
- export declare type Adaptable<T extends Value> = T | AnimatedNode<T> | ReadonlyArray<T | AnimatedNode<T> | ReadonlyArray<T | AnimatedNode<T>>>;
@@ -1,3 +0,0 @@
1
- import AnimatedValue from './core/AnimatedValue';
2
- import { Value } from './types';
3
- export default function useValue<T extends Value>(initialValue: T): AnimatedValue<T>;
@@ -1 +0,0 @@
1
- export function val(v: any): any;