@tamagui/animations-react-native 2.0.0-rc.33 → 2.0.0-rc.34-1774941075321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.native.js
CHANGED
|
@@ -17,6 +17,6 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
17
17
|
}), mod);
|
|
18
18
|
var index_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(index_exports);
|
|
20
|
-
var import_polyfill = require("./polyfill");
|
|
21
|
-
__reExport(index_exports, require("./createAnimations"), module.exports);
|
|
20
|
+
var import_polyfill = require("./polyfill.native.js");
|
|
21
|
+
__reExport(index_exports, require("./createAnimations.native.js"), module.exports);
|
|
22
22
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__reExport","target","mod","secondTarget","__toCommonJS","value","index_exports","module","exports","import_polyfill","require"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from == \"object\" || typeof from == \"function\")\n for (let key of __getOwnPropNames(from))\n !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n return to;\n}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: !0 }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\nvar import_polyfill = require(\"./polyfill\");\n__reExport(index_exports, require(\"./createAnimations\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;IAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,IAAI,QAAQ,IAAI,OAAOA,IAAI,IAAI,UAAU,EAC9D,KAAK,IAAIG,GAAG,IAAIV,iBAAiB,CAACO,IAAI,CAAC,EACrC,CAACL,YAAY,CAACS,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,IAAIb,SAAS,CAACW,EAAE,EAAEI,GAAG,EAAE;MAAEE,GAAG,EAAEA,CAAA,KAAML,IAAI,CAACG,GAAG,CAAC;MAAEG,UAAU,EAAE,EAAEJ,IAAI,GAAGX,gBAAgB,CAACS,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACI;IAAW,CAAC,CAAC;IACvK,OAAOP,EAAE;EACX,CAAC;EAAEQ,UAAU,GAAGA,CAACC,MAAM,EAAEC,GAAG,EAAEC,YAAY,MAAMZ,WAAW,CAACU,MAAM,EAAEC,GAAG,EAAE,SAAS,CAAC,EAAEC,YAAY,IAAIZ,WAAW,CAACY,YAAY,EAAED,GAAG,EAAE,SAAS,CAAC,CAAC;AAC/I,IAAIE,YAAY,GAAIF,GAAG,IAAKX,WAAW,CAACV,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEwB,KAAK,EAAE,CAAC;AAAE,CAAC,CAAC,EAAEH,GAAG,CAAC;AACxF,IAAII,aAAa,GAAG,CAAC,CAAC;AACtBC,MAAM,CAACC,OAAO,GAAGJ,YAAY,CAACE,aAAa,CAAC;AAC5C,IAAIG,eAAe,GAAGC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__reExport","target","mod","secondTarget","__toCommonJS","value","index_exports","module","exports","import_polyfill","require"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from == \"object\" || typeof from == \"function\")\n for (let key of __getOwnPropNames(from))\n !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n return to;\n}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: !0 }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\nvar import_polyfill = require(\"./polyfill\");\n__reExport(index_exports, require(\"./createAnimations\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,GAAGA,CAACC,EAA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
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.34-1774941075321",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"clean:build": "tamagui-build clean:build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tamagui/animation-helpers": "2.0.0-rc.
|
|
42
|
-
"@tamagui/constants": "2.0.0-rc.
|
|
43
|
-
"@tamagui/use-presence": "2.0.0-rc.
|
|
44
|
-
"@tamagui/web": "2.0.0-rc.
|
|
41
|
+
"@tamagui/animation-helpers": "2.0.0-rc.34-1774941075321",
|
|
42
|
+
"@tamagui/constants": "2.0.0-rc.34-1774941075321",
|
|
43
|
+
"@tamagui/use-presence": "2.0.0-rc.34-1774941075321",
|
|
44
|
+
"@tamagui/web": "2.0.0-rc.34-1774941075321"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@tamagui/build": "2.0.0-rc.
|
|
47
|
+
"@tamagui/build": "2.0.0-rc.34-1774941075321",
|
|
48
48
|
"react": ">=19",
|
|
49
49
|
"react-native": "0.83.2"
|
|
50
50
|
},
|
package/src/createAnimations.tsx
CHANGED
|
@@ -172,6 +172,13 @@ export const useAnimatedNumberStyle: UseAnimatedNumberStyle<RNAnimatedNum> = (
|
|
|
172
172
|
return getStyle(value.getInstance())
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
export const useAnimatedNumbersStyle = (
|
|
176
|
+
vals: RNAnimatedNum[],
|
|
177
|
+
getStyle: (...currentValues: any[]) => any
|
|
178
|
+
): any => {
|
|
179
|
+
return getStyle(...vals.map((v) => v.getInstance()))
|
|
180
|
+
}
|
|
181
|
+
|
|
175
182
|
export function createAnimations<A extends AnimationsConfig>(
|
|
176
183
|
animations: A,
|
|
177
184
|
options?: CreateAnimationsOptions
|
|
@@ -190,6 +197,7 @@ export function createAnimations<A extends AnimationsConfig>(
|
|
|
190
197
|
useAnimatedNumber,
|
|
191
198
|
useAnimatedNumberReaction,
|
|
192
199
|
useAnimatedNumberStyle,
|
|
200
|
+
useAnimatedNumbersStyle,
|
|
193
201
|
usePresence,
|
|
194
202
|
ResetPresence,
|
|
195
203
|
useAnimations: ({
|
|
@@ -17,6 +17,7 @@ export declare function useAnimatedNumber(initial: number): UniversalAnimatedNum
|
|
|
17
17
|
type RNAnimatedNum = UniversalAnimatedNumber<Animated.Value>;
|
|
18
18
|
export declare const useAnimatedNumberReaction: UseAnimatedNumberReaction<RNAnimatedNum>;
|
|
19
19
|
export declare const useAnimatedNumberStyle: UseAnimatedNumberStyle<RNAnimatedNum>;
|
|
20
|
+
export declare const useAnimatedNumbersStyle: (vals: RNAnimatedNum[], getStyle: (...currentValues: any[]) => any) => any;
|
|
20
21
|
export declare function createAnimations<A extends AnimationsConfig>(animations: A, options?: CreateAnimationsOptions): AnimationDriver<A>;
|
|
21
22
|
export {};
|
|
22
23
|
|