react-native-reanimated 3.5.2 → 3.5.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.
- package/lib/module/reanimated2/PlatformChecker.js +8 -2
- package/lib/module/reanimated2/PlatformChecker.js.map +1 -1
- package/lib/module/reanimated2/hook/useAnimatedScrollHandler.js.map +1 -1
- package/lib/module/reanimated2/index.js +11 -11
- package/lib/module/reanimated2/index.js.map +1 -1
- package/lib/module/reanimated2/jestUtils.web.js +16 -1
- package/lib/module/reanimated2/jestUtils.web.js.map +1 -1
- package/lib/module/reanimated2/platform-specific/jsVersion.js +1 -1
- package/lib/module/reanimated2/platform-specific/jsVersion.js.map +1 -1
- package/lib/typescript/reanimated2/hook/useAnimatedScrollHandler.d.ts +2 -2
- package/lib/typescript/reanimated2/index.d.ts +22 -11
- package/lib/typescript/reanimated2/jestUtils.web.d.ts +5 -2
- package/lib/typescript/reanimated2/platform-specific/jsVersion.d.ts +1 -1
- package/package.json +1 -1
- package/src/reanimated2/PlatformChecker.ts +12 -3
- package/src/reanimated2/hook/useAnimatedScrollHandler.ts +2 -2
- package/src/reanimated2/index.ts +48 -45
- package/src/reanimated2/jestUtils.web.ts +20 -1
- package/src/reanimated2/platform-specific/jsVersion.ts +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
// This type is necessary since some libraries tend to do a lib check
|
|
4
|
+
// and this file causes type errors on `global` access.
|
|
2
5
|
export function isJest() {
|
|
3
6
|
return !!process.env.JEST_WORKER_ID;
|
|
4
7
|
}
|
|
5
8
|
export function isChromeDebugger() {
|
|
6
|
-
return !global.nativeCallSyncHook || global.__REMOTEDEV__;
|
|
9
|
+
return !global.nativeCallSyncHook || !!global.__REMOTEDEV__;
|
|
7
10
|
}
|
|
8
11
|
export function isWeb() {
|
|
9
12
|
return Platform.OS === 'web';
|
|
@@ -24,9 +27,12 @@ export function isWindowAvailable() {
|
|
|
24
27
|
// the window object is unavailable when building the server portion of a site that uses SSG
|
|
25
28
|
// this function shouldn't be used to conditionally render components
|
|
26
29
|
// https://www.joshwcomeau.com/react/the-perils-of-rehydration/
|
|
30
|
+
// @ts-ignore Fallback if `window` is undefined.
|
|
27
31
|
return typeof window !== 'undefined';
|
|
28
32
|
}
|
|
29
33
|
export function isReducedMotion() {
|
|
30
|
-
return isWeb() ? isWindowAvailable() ?
|
|
34
|
+
return isWeb() ? isWindowAvailable() ?
|
|
35
|
+
// @ts-ignore Fallback if `window` is undefined.
|
|
36
|
+
!window.matchMedia('(prefers-reduced-motion: no-preference)').matches : false : global._REANIMATED_IS_REDUCED_MOTION ?? false;
|
|
31
37
|
}
|
|
32
38
|
//# sourceMappingURL=PlatformChecker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","isJest","process","env","JEST_WORKER_ID","isChromeDebugger","global","nativeCallSyncHook","__REMOTEDEV__","isWeb","OS","isAndroid","isWindows","shouldBeUseWeb","nativeShouldBeMock","isWindowAvailable","window","isReducedMotion","matchMedia","matches","_REANIMATED_IS_REDUCED_MOTION"],"sources":["PlatformChecker.ts"],"sourcesContent":["import { Platform } from 'react-native';\n\nexport function isJest(): boolean {\n return !!process.env.JEST_WORKER_ID;\n}\n\nexport function isChromeDebugger(): boolean {\n return !(global as
|
|
1
|
+
{"version":3,"names":["Platform","isJest","process","env","JEST_WORKER_ID","isChromeDebugger","global","nativeCallSyncHook","__REMOTEDEV__","isWeb","OS","isAndroid","isWindows","shouldBeUseWeb","nativeShouldBeMock","isWindowAvailable","window","isReducedMotion","matchMedia","matches","_REANIMATED_IS_REDUCED_MOTION"],"sources":["PlatformChecker.ts"],"sourcesContent":["import { Platform } from 'react-native';\n\n// This type is necessary since some libraries tend to do a lib check\n// and this file causes type errors on `global` access.\ntype localGlobal = typeof global & Record<string, unknown>;\n\nexport function isJest(): boolean {\n return !!process.env.JEST_WORKER_ID;\n}\n\nexport function isChromeDebugger(): boolean {\n return (\n !(global as localGlobal).nativeCallSyncHook ||\n !!(global as localGlobal).__REMOTEDEV__\n );\n}\n\nexport function isWeb(): boolean {\n return Platform.OS === 'web';\n}\n\nexport function isAndroid(): boolean {\n return Platform.OS === 'android';\n}\n\nfunction isWindows(): boolean {\n return Platform.OS === 'windows';\n}\n\nexport function shouldBeUseWeb() {\n return isJest() || isChromeDebugger() || isWeb() || isWindows();\n}\n\nexport function nativeShouldBeMock() {\n return isJest() || isChromeDebugger() || isWindows();\n}\n\nexport function isWindowAvailable() {\n // the window object is unavailable when building the server portion of a site that uses SSG\n // this function shouldn't be used to conditionally render components\n // https://www.joshwcomeau.com/react/the-perils-of-rehydration/\n // @ts-ignore Fallback if `window` is undefined.\n return typeof window !== 'undefined';\n}\n\nexport function isReducedMotion() {\n return isWeb()\n ? isWindowAvailable()\n ? // @ts-ignore Fallback if `window` is undefined.\n !window.matchMedia('(prefers-reduced-motion: no-preference)').matches\n : false\n : (global as localGlobal)._REANIMATED_IS_REDUCED_MOTION ?? false;\n}\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;;AAEvC;AACA;AAGA,OAAO,SAASC,MAAMA,CAAA,EAAY;EAChC,OAAO,CAAC,CAACC,OAAO,CAACC,GAAG,CAACC,cAAc;AACrC;AAEA,OAAO,SAASC,gBAAgBA,CAAA,EAAY;EAC1C,OACE,CAAEC,MAAM,CAAiBC,kBAAkB,IAC3C,CAAC,CAAED,MAAM,CAAiBE,aAAa;AAE3C;AAEA,OAAO,SAASC,KAAKA,CAAA,EAAY;EAC/B,OAAOT,QAAQ,CAACU,EAAE,KAAK,KAAK;AAC9B;AAEA,OAAO,SAASC,SAASA,CAAA,EAAY;EACnC,OAAOX,QAAQ,CAACU,EAAE,KAAK,SAAS;AAClC;AAEA,SAASE,SAASA,CAAA,EAAY;EAC5B,OAAOZ,QAAQ,CAACU,EAAE,KAAK,SAAS;AAClC;AAEA,OAAO,SAASG,cAAcA,CAAA,EAAG;EAC/B,OAAOZ,MAAM,EAAE,IAAII,gBAAgB,EAAE,IAAII,KAAK,EAAE,IAAIG,SAAS,EAAE;AACjE;AAEA,OAAO,SAASE,kBAAkBA,CAAA,EAAG;EACnC,OAAOb,MAAM,EAAE,IAAII,gBAAgB,EAAE,IAAIO,SAAS,EAAE;AACtD;AAEA,OAAO,SAASG,iBAAiBA,CAAA,EAAG;EAClC;EACA;EACA;EACA;EACA,OAAO,OAAOC,MAAM,KAAK,WAAW;AACtC;AAEA,OAAO,SAASC,eAAeA,CAAA,EAAG;EAChC,OAAOR,KAAK,EAAE,GACVM,iBAAiB,EAAE;EACjB;EACA,CAACC,MAAM,CAACE,UAAU,CAAC,yCAAyC,CAAC,CAACC,OAAO,GACrE,KAAK,GACNb,MAAM,CAAiBc,6BAA6B,IAAI,KAAK;AACpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEvent","useHandler","useAnimatedScrollHandler","handlers","dependencies","scrollHandlers","onScroll","context","doDependenciesDiffer","subscribeForEvents","onBeginDrag","undefined","push","onEndDrag","onMomentumBegin","onMomentumEnd","event","eventName","endsWith"],"sources":["useAnimatedScrollHandler.ts"],"sourcesContent":["import type { RefObject } from 'react';\nimport type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';\nimport type { __Context, NativeEvent, __WorkletFunction } from '../commonTypes';\nimport type WorkletEventHandler from '../WorkletEventHandler';\nimport type { DependencyList } from './commonTypes';\nimport { useEvent, useHandler } from './Hooks';\n\nexport interface ScrollHandler<TContext extends __Context>\n extends __WorkletFunction {\n (event: NativeScrollEvent, context?: TContext): void;\n}\n\nexport interface ScrollEvent\n extends NativeScrollEvent,\n NativeEvent<ScrollEvent> {\n eventName: string;\n}\nexport interface ScrollHandlers<TContext extends __Context> {\n [key: string]: ScrollHandler<TContext> | undefined;\n onScroll?: ScrollHandler<TContext>;\n onBeginDrag?: ScrollHandler<TContext>;\n onEndDrag?: ScrollHandler<TContext>;\n onMomentumBegin?: ScrollHandler<TContext>;\n onMomentumEnd?: ScrollHandler<TContext>;\n}\n\n// TODO TYPESCRIPT This is a temporary type to get rid of .d.ts file.\ntype OnScroll = (event: NativeSyntheticEvent<NativeScrollEvent>) => void;\n\n// TODO TYPESCRIPT This is a temporary type to get rid of .d.ts file.\
|
|
1
|
+
{"version":3,"names":["useEvent","useHandler","useAnimatedScrollHandler","handlers","dependencies","scrollHandlers","onScroll","context","doDependenciesDiffer","subscribeForEvents","onBeginDrag","undefined","push","onEndDrag","onMomentumBegin","onMomentumEnd","event","eventName","endsWith"],"sources":["useAnimatedScrollHandler.ts"],"sourcesContent":["import type { RefObject } from 'react';\nimport type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';\nimport type { __Context, NativeEvent, __WorkletFunction } from '../commonTypes';\nimport type WorkletEventHandler from '../WorkletEventHandler';\nimport type { DependencyList } from './commonTypes';\nimport { useEvent, useHandler } from './Hooks';\n\nexport interface ScrollHandler<TContext extends __Context>\n extends __WorkletFunction {\n (event: NativeScrollEvent, context?: TContext): void;\n}\n\nexport interface ScrollEvent\n extends NativeScrollEvent,\n NativeEvent<ScrollEvent> {\n eventName: string;\n}\nexport interface ScrollHandlers<TContext extends __Context> {\n [key: string]: ScrollHandler<TContext> | undefined;\n onScroll?: ScrollHandler<TContext>;\n onBeginDrag?: ScrollHandler<TContext>;\n onEndDrag?: ScrollHandler<TContext>;\n onMomentumBegin?: ScrollHandler<TContext>;\n onMomentumEnd?: ScrollHandler<TContext>;\n}\n\n// TODO TYPESCRIPT This is a temporary type to get rid of .d.ts file.\ntype OnScroll = (event: NativeSyntheticEvent<NativeScrollEvent>) => void;\n\n// TODO TYPESCRIPT This is a temporary type to get rid of .d.ts file.\ntype useAnimatedScrollHandlerType = <\n TContext extends __Context = Record<string, never>\n>(\n handlers: ScrollHandlers<TContext> | ScrollHandler<TContext>,\n deps?: DependencyList\n) => OnScroll;\n\nexport const useAnimatedScrollHandler = function <TContext extends __Context>(\n handlers: ScrollHandlers<TContext> | ScrollHandler<TContext>,\n dependencies?: DependencyList\n): RefObject<WorkletEventHandler<ScrollEvent>> {\n // case when handlers is a function\n const scrollHandlers: ScrollHandlers<TContext> =\n typeof handlers === 'function' ? { onScroll: handlers } : handlers;\n const { context, doDependenciesDiffer } = useHandler<ScrollEvent, TContext>(\n scrollHandlers,\n dependencies\n );\n\n // build event subscription array\n const subscribeForEvents = ['onScroll'];\n if (scrollHandlers.onBeginDrag !== undefined) {\n subscribeForEvents.push('onScrollBeginDrag');\n }\n if (scrollHandlers.onEndDrag !== undefined) {\n subscribeForEvents.push('onScrollEndDrag');\n }\n if (scrollHandlers.onMomentumBegin !== undefined) {\n subscribeForEvents.push('onMomentumScrollBegin');\n }\n if (scrollHandlers.onMomentumEnd !== undefined) {\n subscribeForEvents.push('onMomentumScrollEnd');\n }\n\n return useEvent<ScrollEvent>(\n (event: ScrollEvent) => {\n 'worklet';\n const {\n onScroll,\n onBeginDrag,\n onEndDrag,\n onMomentumBegin,\n onMomentumEnd,\n } = scrollHandlers;\n if (onScroll && event.eventName.endsWith('onScroll')) {\n onScroll(event, context);\n } else if (onBeginDrag && event.eventName.endsWith('onScrollBeginDrag')) {\n onBeginDrag(event, context);\n } else if (onEndDrag && event.eventName.endsWith('onScrollEndDrag')) {\n onEndDrag(event, context);\n } else if (\n onMomentumBegin &&\n event.eventName.endsWith('onMomentumScrollBegin')\n ) {\n onMomentumBegin(event, context);\n } else if (\n onMomentumEnd &&\n event.eventName.endsWith('onMomentumScrollEnd')\n ) {\n onMomentumEnd(event, context);\n }\n },\n subscribeForEvents,\n doDependenciesDiffer\n // TODO TYPESCRIPT This temporary cast is to get rid of .d.ts file.\n ) as any;\n // TODO TYPESCRIPT This temporary cast is to get rid of .d.ts file.\n} as unknown as useAnimatedScrollHandlerType;\n"],"mappings":"AAKA,SAASA,QAAQ,EAAEC,UAAU,QAAQ,SAAS;;AAqB9C;;AAGA;;AAQA,OAAO,MAAMC,wBAAwB,GAAG,SAAAA,CACtCC,QAA4D,EAC5DC,YAA6B,EACgB;EAC7C;EACA,MAAMC,cAAwC,GAC5C,OAAOF,QAAQ,KAAK,UAAU,GAAG;IAAEG,QAAQ,EAAEH;EAAS,CAAC,GAAGA,QAAQ;EACpE,MAAM;IAAEI,OAAO;IAAEC;EAAqB,CAAC,GAAGP,UAAU,CAClDI,cAAc,EACdD,YAAY,CACb;;EAED;EACA,MAAMK,kBAAkB,GAAG,CAAC,UAAU,CAAC;EACvC,IAAIJ,cAAc,CAACK,WAAW,KAAKC,SAAS,EAAE;IAC5CF,kBAAkB,CAACG,IAAI,CAAC,mBAAmB,CAAC;EAC9C;EACA,IAAIP,cAAc,CAACQ,SAAS,KAAKF,SAAS,EAAE;IAC1CF,kBAAkB,CAACG,IAAI,CAAC,iBAAiB,CAAC;EAC5C;EACA,IAAIP,cAAc,CAACS,eAAe,KAAKH,SAAS,EAAE;IAChDF,kBAAkB,CAACG,IAAI,CAAC,uBAAuB,CAAC;EAClD;EACA,IAAIP,cAAc,CAACU,aAAa,KAAKJ,SAAS,EAAE;IAC9CF,kBAAkB,CAACG,IAAI,CAAC,qBAAqB,CAAC;EAChD;EAEA,OAAOZ,QAAQ,CACZgB,KAAkB,IAAK;IACtB,SAAS;;IACT,MAAM;MACJV,QAAQ;MACRI,WAAW;MACXG,SAAS;MACTC,eAAe;MACfC;IACF,CAAC,GAAGV,cAAc;IAClB,IAAIC,QAAQ,IAAIU,KAAK,CAACC,SAAS,CAACC,QAAQ,CAAC,UAAU,CAAC,EAAE;MACpDZ,QAAQ,CAACU,KAAK,EAAET,OAAO,CAAC;IAC1B,CAAC,MAAM,IAAIG,WAAW,IAAIM,KAAK,CAACC,SAAS,CAACC,QAAQ,CAAC,mBAAmB,CAAC,EAAE;MACvER,WAAW,CAACM,KAAK,EAAET,OAAO,CAAC;IAC7B,CAAC,MAAM,IAAIM,SAAS,IAAIG,KAAK,CAACC,SAAS,CAACC,QAAQ,CAAC,iBAAiB,CAAC,EAAE;MACnEL,SAAS,CAACG,KAAK,EAAET,OAAO,CAAC;IAC3B,CAAC,MAAM,IACLO,eAAe,IACfE,KAAK,CAACC,SAAS,CAACC,QAAQ,CAAC,uBAAuB,CAAC,EACjD;MACAJ,eAAe,CAACE,KAAK,EAAET,OAAO,CAAC;IACjC,CAAC,MAAM,IACLQ,aAAa,IACbC,KAAK,CAACC,SAAS,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAC/C;MACAH,aAAa,CAACC,KAAK,EAAET,OAAO,CAAC;IAC/B;EACF,CAAC,EACDE,kBAAkB,EAClBD;EACA;EAAA,CACD;EACD;AACF,CAA4C"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import './publicGlobals';
|
|
2
|
-
export { runOnJS, runOnUI, createWorkletRuntime,
|
|
3
|
-
export { useAnimatedProps, useEvent, useHandler, useWorkletCallback, useSharedValue, useReducedMotion, useAnimatedStyle, useAnimatedGestureHandler,
|
|
4
|
-
export {
|
|
5
|
-
export { Extrapolation,
|
|
6
|
-
export { Extrapolate,
|
|
7
|
-
export {
|
|
2
|
+
export { runOnJS, runOnUI, createWorkletRuntime, makeMutable, makeShareableCloneRecursive, isReanimated3, isConfigured, enableLayoutAnimations, getViewProp } from './core';
|
|
3
|
+
export { useAnimatedProps, useEvent, useHandler, useWorkletCallback, useSharedValue, useReducedMotion, useAnimatedStyle, useAnimatedGestureHandler, useAnimatedReaction, useAnimatedRef, useAnimatedScrollHandler, useDerivedValue, useAnimatedSensor, useFrameCallback, useAnimatedKeyboard, useScrollViewOffset } from './hook';
|
|
4
|
+
export { cancelAnimation, defineAnimation, withTiming, withSpring, withDecay, withDelay, withRepeat, withSequence } from './animation';
|
|
5
|
+
export { Extrapolation, interpolate, clamp } from './interpolation';
|
|
6
|
+
export { Extrapolate, ColorSpace, interpolateColor, useInterpolateConfig } from './interpolateColor';
|
|
7
|
+
export { Easing } from './Easing';
|
|
8
8
|
export { measure, dispatchCommand, scrollTo, setGestureState } from './NativeMethods';
|
|
9
9
|
export { setNativeProps } from './SetNativeProps';
|
|
10
|
-
export { isColor, processColor,
|
|
10
|
+
export { isColor, processColor, convertToRGBA } from './Colors';
|
|
11
11
|
export { createAnimatedPropAdapter } from './PropAdapters';
|
|
12
|
-
export { BaseAnimationBuilder, ComplexAnimationBuilder, Keyframe,
|
|
12
|
+
export { BaseAnimationBuilder, ComplexAnimationBuilder, Keyframe,
|
|
13
13
|
// Flip
|
|
14
14
|
FlipInXUp, FlipInYLeft, FlipInXDown, FlipInYRight, FlipInEasyX, FlipInEasyY, FlipOutXUp, FlipOutYLeft, FlipOutXDown, FlipOutYRight, FlipOutEasyX, FlipOutEasyY,
|
|
15
15
|
// Stretch
|
|
@@ -34,9 +34,9 @@ RollInLeft, RollInRight, RollOutLeft, RollOutRight,
|
|
|
34
34
|
Layout, LinearTransition, FadingTransition, SequencedTransition, JumpingTransition, CurvedTransition, EntryExitTransition, combineTransition,
|
|
35
35
|
// SET
|
|
36
36
|
SharedTransition, SharedTransitionType } from './layoutReanimation';
|
|
37
|
-
export { getRelativeCoords,
|
|
38
|
-
export {
|
|
39
|
-
export { FrameInfo } from './frameCallback';
|
|
37
|
+
export { getRelativeCoords, isSharedValue } from './utils';
|
|
38
|
+
export { SensorType, IOSReferenceFrame, InterfaceOrientation, KeyboardState, ReduceMotion } from './commonTypes';
|
|
40
39
|
export { getUseOfValueInStyleWarning } from './pluginUtils';
|
|
41
40
|
export { withReanimatedTimer, advanceAnimationByTime, advanceAnimationByFrame, setUpTests, getAnimatedStyle } from './jestUtils';
|
|
41
|
+
export { startMapper, stopMapper } from './mappers';
|
|
42
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["runOnJS","runOnUI","createWorkletRuntime","WorkletRuntime","makeMutable","makeShareableCloneRecursive","isReanimated3","isConfigured","enableLayoutAnimations","getViewProp","useAnimatedProps","useEvent","useHandler","useWorkletCallback","useSharedValue","useReducedMotion","useAnimatedStyle","useAnimatedGestureHandler","GestureHandlers","useAnimatedReaction","AnimatedRef","useAnimatedRef","useAnimatedScrollHandler","ScrollHandler","ScrollHandlers","useDerivedValue","DerivedValue","useAnimatedSensor","useFrameCallback","FrameCallback","useAnimatedKeyboard","useScrollViewOffset","DelayAnimation","RepeatAnimation","SequenceAnimation","StyleLayoutAnimation","cancelAnimation","defineAnimation","withTiming","WithTimingConfig","TimingAnimation","withSpring","WithSpringConfig","SpringAnimation","withDecay","WithDecayConfig","DecayAnimation","withDelay","withRepeat","withSequence","Extrapolation","ExtrapolationConfig","ExtrapolationType","interpolate","clamp","Extrapolate","InterpolationOptions","interpolateColor","ColorSpace","InterpolateConfig","useInterpolateConfig","InterpolateRGB","InterpolateHSV","EasingFunction","EasingFn","EasingFunctionFactory","EasingFactoryFn","Easing","measure","dispatchCommand","scrollTo","setGestureState","setNativeProps","isColor","processColor","ParsedColorArray","convertToRGBA","createAnimatedPropAdapter","BaseAnimationBuilder","ComplexAnimationBuilder","Keyframe","LayoutAnimation","EntryAnimationsValues","ExitAnimationsValues","EntryExitAnimationFunction","LayoutAnimationsValues","LayoutAnimationFunction","ILayoutAnimationBuilder","IEntryExitAnimationBuilder","FlipInXUp","FlipInYLeft","FlipInXDown","FlipInYRight","FlipInEasyX","FlipInEasyY","FlipOutXUp","FlipOutYLeft","FlipOutXDown","FlipOutYRight","FlipOutEasyX","FlipOutEasyY","StretchInX","StretchInY","StretchOutX","StretchOutY","FadeIn","FadeInRight","FadeInLeft","FadeInUp","FadeInDown","FadeOut","FadeOutRight","FadeOutLeft","FadeOutUp","FadeOutDown","SlideInRight","SlideInLeft","SlideOutRight","SlideOutLeft","SlideInUp","SlideInDown","SlideOutUp","SlideOutDown","ZoomIn","ZoomInRotate","ZoomInLeft","ZoomInRight","ZoomInUp","ZoomInDown","ZoomInEasyUp","ZoomInEasyDown","ZoomOut","ZoomOutRotate","ZoomOutLeft","ZoomOutRight","ZoomOutUp","ZoomOutDown","ZoomOutEasyUp","ZoomOutEasyDown","BounceIn","BounceInDown","BounceInUp","BounceInLeft","BounceInRight","BounceOut","BounceOutDown","BounceOutUp","BounceOutLeft","BounceOutRight","LightSpeedInRight","LightSpeedInLeft","LightSpeedOutRight","LightSpeedOutLeft","PinwheelIn","PinwheelOut","RotateInDownLeft","RotateInDownRight","RotateInUpLeft","RotateInUpRight","RotateOutDownLeft","RotateOutDownRight","RotateOutUpLeft","RotateOutUpRight","RollInLeft","RollInRight","RollOutLeft","RollOutRight","Layout","LinearTransition","FadingTransition","SequencedTransition","JumpingTransition","CurvedTransition","EntryExitTransition","combineTransition","SharedTransition","SharedTransitionType","getRelativeCoords","ComponentCoords","isSharedValue","StyleProps","SharedValue","AnimatableValueObject","AnimatableValue","AnimationObject","Animation","SensorType","IOSReferenceFrame","SensorConfig","AnimatedSensor","AnimationCallback","Value3D","ValueRotation","InterfaceOrientation","KeyboardState","AnimatedKeyboardInfo","MeasuredDimensions","AnimatedKeyboardOptions","ReduceMotion","FrameInfo","getUseOfValueInStyleWarning","withReanimatedTimer","advanceAnimationByTime","advanceAnimationByFrame","setUpTests","getAnimatedStyle"],"sources":["index.ts"],"sourcesContent":["import './publicGlobals';\n\nexport {\n runOnJS,\n runOnUI,\n createWorkletRuntime,\n WorkletRuntime,\n makeMutable,\n makeShareableCloneRecursive,\n isReanimated3,\n isConfigured,\n enableLayoutAnimations,\n getViewProp,\n} from './core';\nexport {\n useAnimatedProps,\n useEvent,\n useHandler,\n useWorkletCallback,\n useSharedValue,\n useReducedMotion,\n useAnimatedStyle,\n useAnimatedGestureHandler,\n GestureHandlers,\n useAnimatedReaction,\n AnimatedRef,\n useAnimatedRef,\n useAnimatedScrollHandler,\n ScrollHandler,\n ScrollHandlers,\n useDerivedValue,\n DerivedValue,\n useAnimatedSensor,\n useFrameCallback,\n FrameCallback,\n useAnimatedKeyboard,\n useScrollViewOffset,\n} from './hook';\nexport {\n DelayAnimation,\n RepeatAnimation,\n SequenceAnimation,\n StyleLayoutAnimation,\n cancelAnimation,\n defineAnimation,\n withTiming,\n WithTimingConfig,\n TimingAnimation,\n withSpring,\n WithSpringConfig,\n SpringAnimation,\n withDecay,\n WithDecayConfig,\n DecayAnimation,\n withDelay,\n withRepeat,\n withSequence,\n} from './animation';\nexport {\n Extrapolation,\n ExtrapolationConfig,\n ExtrapolationType,\n interpolate,\n clamp,\n} from './interpolation';\nexport {\n Extrapolate,\n InterpolationOptions,\n interpolateColor,\n ColorSpace,\n InterpolateConfig,\n useInterpolateConfig,\n InterpolateRGB,\n InterpolateHSV,\n} from './interpolateColor';\nexport {\n EasingFunction,\n EasingFn,\n EasingFunctionFactory,\n EasingFactoryFn,\n Easing,\n} from './Easing';\nexport {\n measure,\n dispatchCommand,\n scrollTo,\n setGestureState,\n} from './NativeMethods';\nexport { setNativeProps } from './SetNativeProps';\nexport {\n isColor,\n processColor,\n ParsedColorArray,\n convertToRGBA,\n} from './Colors';\nexport { createAnimatedPropAdapter } from './PropAdapters';\nexport {\n BaseAnimationBuilder,\n ComplexAnimationBuilder,\n Keyframe,\n LayoutAnimation,\n EntryAnimationsValues,\n ExitAnimationsValues,\n EntryExitAnimationFunction,\n LayoutAnimationsValues,\n LayoutAnimationFunction,\n ILayoutAnimationBuilder,\n IEntryExitAnimationBuilder,\n // Flip\n FlipInXUp,\n FlipInYLeft,\n FlipInXDown,\n FlipInYRight,\n FlipInEasyX,\n FlipInEasyY,\n FlipOutXUp,\n FlipOutYLeft,\n FlipOutXDown,\n FlipOutYRight,\n FlipOutEasyX,\n FlipOutEasyY,\n // Stretch\n StretchInX,\n StretchInY,\n StretchOutX,\n StretchOutY,\n // Fade\n FadeIn,\n FadeInRight,\n FadeInLeft,\n FadeInUp,\n FadeInDown,\n FadeOut,\n FadeOutRight,\n FadeOutLeft,\n FadeOutUp,\n FadeOutDown,\n // Slide\n SlideInRight,\n SlideInLeft,\n SlideOutRight,\n SlideOutLeft,\n SlideInUp,\n SlideInDown,\n SlideOutUp,\n SlideOutDown,\n // Zoom\n ZoomIn,\n ZoomInRotate,\n ZoomInLeft,\n ZoomInRight,\n ZoomInUp,\n ZoomInDown,\n ZoomInEasyUp,\n ZoomInEasyDown,\n ZoomOut,\n ZoomOutRotate,\n ZoomOutLeft,\n ZoomOutRight,\n ZoomOutUp,\n ZoomOutDown,\n ZoomOutEasyUp,\n ZoomOutEasyDown,\n // Bounce\n BounceIn,\n BounceInDown,\n BounceInUp,\n BounceInLeft,\n BounceInRight,\n BounceOut,\n BounceOutDown,\n BounceOutUp,\n BounceOutLeft,\n BounceOutRight,\n // Lightspeed\n LightSpeedInRight,\n LightSpeedInLeft,\n LightSpeedOutRight,\n LightSpeedOutLeft,\n // Pinwheel\n PinwheelIn,\n PinwheelOut,\n // Rotate\n RotateInDownLeft,\n RotateInDownRight,\n RotateInUpLeft,\n RotateInUpRight,\n RotateOutDownLeft,\n RotateOutDownRight,\n RotateOutUpLeft,\n RotateOutUpRight,\n // Roll\n RollInLeft,\n RollInRight,\n RollOutLeft,\n RollOutRight,\n // Transitions\n Layout,\n LinearTransition,\n FadingTransition,\n SequencedTransition,\n JumpingTransition,\n CurvedTransition,\n EntryExitTransition,\n combineTransition,\n // SET\n SharedTransition,\n SharedTransitionType,\n} from './layoutReanimation';\nexport { getRelativeCoords, ComponentCoords, isSharedValue } from './utils';\nexport {\n StyleProps,\n SharedValue,\n AnimatableValueObject,\n AnimatableValue,\n AnimationObject,\n Animation,\n SensorType,\n IOSReferenceFrame,\n SensorConfig,\n AnimatedSensor,\n AnimationCallback,\n Value3D,\n ValueRotation,\n InterfaceOrientation,\n KeyboardState,\n AnimatedKeyboardInfo,\n MeasuredDimensions,\n AnimatedKeyboardOptions,\n ReduceMotion,\n} from './commonTypes';\nexport { FrameInfo } from './frameCallback';\nexport { getUseOfValueInStyleWarning } from './pluginUtils';\nexport {\n withReanimatedTimer,\n advanceAnimationByTime,\n advanceAnimationByFrame,\n setUpTests,\n getAnimatedStyle,\n} from './jestUtils';\nexport type {\n Adaptable,\n AdaptTransforms,\n AnimateProps,\n AnimatedProps,\n AnimatedTransform,\n TransformStyleTypes,\n TransformArrayItem,\n AnimateStyle,\n AnimatedStyle,\n AnimatedStyleProp,\n StylesOrDefault,\n} from './helperTypes';\nexport type { AnimatedScrollViewProps } from './component/ScrollView';\nexport type { FlatListPropsWithLayout } from './component/FlatList';\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"names":["runOnJS","runOnUI","createWorkletRuntime","makeMutable","makeShareableCloneRecursive","isReanimated3","isConfigured","enableLayoutAnimations","getViewProp","useAnimatedProps","useEvent","useHandler","useWorkletCallback","useSharedValue","useReducedMotion","useAnimatedStyle","useAnimatedGestureHandler","useAnimatedReaction","useAnimatedRef","useAnimatedScrollHandler","useDerivedValue","useAnimatedSensor","useFrameCallback","useAnimatedKeyboard","useScrollViewOffset","cancelAnimation","defineAnimation","withTiming","withSpring","withDecay","withDelay","withRepeat","withSequence","Extrapolation","interpolate","clamp","Extrapolate","ColorSpace","interpolateColor","useInterpolateConfig","Easing","measure","dispatchCommand","scrollTo","setGestureState","setNativeProps","isColor","processColor","convertToRGBA","createAnimatedPropAdapter","BaseAnimationBuilder","ComplexAnimationBuilder","Keyframe","FlipInXUp","FlipInYLeft","FlipInXDown","FlipInYRight","FlipInEasyX","FlipInEasyY","FlipOutXUp","FlipOutYLeft","FlipOutXDown","FlipOutYRight","FlipOutEasyX","FlipOutEasyY","StretchInX","StretchInY","StretchOutX","StretchOutY","FadeIn","FadeInRight","FadeInLeft","FadeInUp","FadeInDown","FadeOut","FadeOutRight","FadeOutLeft","FadeOutUp","FadeOutDown","SlideInRight","SlideInLeft","SlideOutRight","SlideOutLeft","SlideInUp","SlideInDown","SlideOutUp","SlideOutDown","ZoomIn","ZoomInRotate","ZoomInLeft","ZoomInRight","ZoomInUp","ZoomInDown","ZoomInEasyUp","ZoomInEasyDown","ZoomOut","ZoomOutRotate","ZoomOutLeft","ZoomOutRight","ZoomOutUp","ZoomOutDown","ZoomOutEasyUp","ZoomOutEasyDown","BounceIn","BounceInDown","BounceInUp","BounceInLeft","BounceInRight","BounceOut","BounceOutDown","BounceOutUp","BounceOutLeft","BounceOutRight","LightSpeedInRight","LightSpeedInLeft","LightSpeedOutRight","LightSpeedOutLeft","PinwheelIn","PinwheelOut","RotateInDownLeft","RotateInDownRight","RotateInUpLeft","RotateInUpRight","RotateOutDownLeft","RotateOutDownRight","RotateOutUpLeft","RotateOutUpRight","RollInLeft","RollInRight","RollOutLeft","RollOutRight","Layout","LinearTransition","FadingTransition","SequencedTransition","JumpingTransition","CurvedTransition","EntryExitTransition","combineTransition","SharedTransition","SharedTransitionType","getRelativeCoords","isSharedValue","SensorType","IOSReferenceFrame","InterfaceOrientation","KeyboardState","ReduceMotion","getUseOfValueInStyleWarning","withReanimatedTimer","advanceAnimationByTime","advanceAnimationByFrame","setUpTests","getAnimatedStyle","startMapper","stopMapper"],"sources":["index.ts"],"sourcesContent":["import './publicGlobals';\n\nexport type { WorkletRuntime } from './core';\nexport {\n runOnJS,\n runOnUI,\n createWorkletRuntime,\n makeMutable,\n makeShareableCloneRecursive,\n isReanimated3,\n isConfigured,\n enableLayoutAnimations,\n getViewProp,\n} from './core';\nexport type {\n GestureHandlers,\n AnimatedRef,\n ScrollHandler,\n ScrollHandlers,\n DerivedValue,\n FrameCallback,\n} from './hook';\nexport {\n useAnimatedProps,\n useEvent,\n useHandler,\n useWorkletCallback,\n useSharedValue,\n useReducedMotion,\n useAnimatedStyle,\n useAnimatedGestureHandler,\n useAnimatedReaction,\n useAnimatedRef,\n useAnimatedScrollHandler,\n useDerivedValue,\n useAnimatedSensor,\n useFrameCallback,\n useAnimatedKeyboard,\n useScrollViewOffset,\n} from './hook';\nexport type {\n DelayAnimation,\n RepeatAnimation,\n SequenceAnimation,\n StyleLayoutAnimation,\n WithTimingConfig,\n TimingAnimation,\n WithSpringConfig,\n SpringAnimation,\n WithDecayConfig,\n DecayAnimation,\n} from './animation';\nexport {\n cancelAnimation,\n defineAnimation,\n withTiming,\n withSpring,\n withDecay,\n withDelay,\n withRepeat,\n withSequence,\n} from './animation';\nexport type { ExtrapolationConfig, ExtrapolationType } from './interpolation';\nexport { Extrapolation, interpolate, clamp } from './interpolation';\nexport type {\n InterpolationOptions,\n InterpolateConfig,\n InterpolateRGB,\n InterpolateHSV,\n} from './interpolateColor';\nexport {\n Extrapolate,\n ColorSpace,\n interpolateColor,\n useInterpolateConfig,\n} from './interpolateColor';\nexport type {\n EasingFunction,\n EasingFn,\n EasingFunctionFactory,\n EasingFactoryFn,\n} from './Easing';\nexport { Easing } from './Easing';\nexport {\n measure,\n dispatchCommand,\n scrollTo,\n setGestureState,\n} from './NativeMethods';\nexport { setNativeProps } from './SetNativeProps';\nexport type { ParsedColorArray } from './Colors';\nexport { isColor, processColor, convertToRGBA } from './Colors';\nexport { createAnimatedPropAdapter } from './PropAdapters';\nexport type {\n LayoutAnimation,\n EntryAnimationsValues,\n ExitAnimationsValues,\n EntryExitAnimationFunction,\n LayoutAnimationsValues,\n LayoutAnimationFunction,\n ILayoutAnimationBuilder,\n IEntryExitAnimationBuilder,\n} from './layoutReanimation';\nexport {\n BaseAnimationBuilder,\n ComplexAnimationBuilder,\n Keyframe,\n // Flip\n FlipInXUp,\n FlipInYLeft,\n FlipInXDown,\n FlipInYRight,\n FlipInEasyX,\n FlipInEasyY,\n FlipOutXUp,\n FlipOutYLeft,\n FlipOutXDown,\n FlipOutYRight,\n FlipOutEasyX,\n FlipOutEasyY,\n // Stretch\n StretchInX,\n StretchInY,\n StretchOutX,\n StretchOutY,\n // Fade\n FadeIn,\n FadeInRight,\n FadeInLeft,\n FadeInUp,\n FadeInDown,\n FadeOut,\n FadeOutRight,\n FadeOutLeft,\n FadeOutUp,\n FadeOutDown,\n // Slide\n SlideInRight,\n SlideInLeft,\n SlideOutRight,\n SlideOutLeft,\n SlideInUp,\n SlideInDown,\n SlideOutUp,\n SlideOutDown,\n // Zoom\n ZoomIn,\n ZoomInRotate,\n ZoomInLeft,\n ZoomInRight,\n ZoomInUp,\n ZoomInDown,\n ZoomInEasyUp,\n ZoomInEasyDown,\n ZoomOut,\n ZoomOutRotate,\n ZoomOutLeft,\n ZoomOutRight,\n ZoomOutUp,\n ZoomOutDown,\n ZoomOutEasyUp,\n ZoomOutEasyDown,\n // Bounce\n BounceIn,\n BounceInDown,\n BounceInUp,\n BounceInLeft,\n BounceInRight,\n BounceOut,\n BounceOutDown,\n BounceOutUp,\n BounceOutLeft,\n BounceOutRight,\n // Lightspeed\n LightSpeedInRight,\n LightSpeedInLeft,\n LightSpeedOutRight,\n LightSpeedOutLeft,\n // Pinwheel\n PinwheelIn,\n PinwheelOut,\n // Rotate\n RotateInDownLeft,\n RotateInDownRight,\n RotateInUpLeft,\n RotateInUpRight,\n RotateOutDownLeft,\n RotateOutDownRight,\n RotateOutUpLeft,\n RotateOutUpRight,\n // Roll\n RollInLeft,\n RollInRight,\n RollOutLeft,\n RollOutRight,\n // Transitions\n Layout,\n LinearTransition,\n FadingTransition,\n SequencedTransition,\n JumpingTransition,\n CurvedTransition,\n EntryExitTransition,\n combineTransition,\n // SET\n SharedTransition,\n SharedTransitionType,\n} from './layoutReanimation';\nexport type { ComponentCoords } from './utils';\nexport { getRelativeCoords, isSharedValue } from './utils';\nexport type {\n StyleProps,\n SharedValue,\n AnimatableValueObject,\n AnimatableValue,\n AnimationObject,\n SensorConfig,\n Animation,\n AnimatedSensor,\n AnimationCallback,\n Value3D,\n ValueRotation,\n AnimatedKeyboardInfo,\n AnimatedKeyboardOptions,\n MeasuredDimensions,\n} from './commonTypes';\nexport {\n SensorType,\n IOSReferenceFrame,\n InterfaceOrientation,\n KeyboardState,\n ReduceMotion,\n} from './commonTypes';\nexport type { FrameInfo } from './frameCallback';\nexport { getUseOfValueInStyleWarning } from './pluginUtils';\nexport {\n withReanimatedTimer,\n advanceAnimationByTime,\n advanceAnimationByFrame,\n setUpTests,\n getAnimatedStyle,\n} from './jestUtils';\nexport type {\n Adaptable,\n AdaptTransforms,\n AnimateProps,\n AnimatedProps,\n AnimatedTransform,\n TransformStyleTypes,\n TransformArrayItem,\n AnimateStyle,\n AnimatedStyle,\n AnimatedStyleProp,\n StylesOrDefault,\n} from './helperTypes';\nexport type { AnimatedScrollViewProps } from './component/ScrollView';\nexport type { FlatListPropsWithLayout } from './component/FlatList';\nexport { startMapper, stopMapper } from './mappers';\n"],"mappings":"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"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Stubbed for web, where we don't use this file;
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
export function withReanimatedTimer() {
|
|
6
|
+
// NOOP
|
|
7
|
+
}
|
|
8
|
+
export function advanceAnimationByTime() {
|
|
9
|
+
// NOOP
|
|
10
|
+
}
|
|
11
|
+
export function advanceAnimationByFrame() {
|
|
12
|
+
// NOOP
|
|
13
|
+
}
|
|
14
|
+
export function setUpTests() {
|
|
15
|
+
// NOOP
|
|
16
|
+
}
|
|
17
|
+
export function getAnimatedStyle() {
|
|
18
|
+
// NOOP
|
|
19
|
+
}
|
|
5
20
|
//# sourceMappingURL=jestUtils.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["jestUtils.web.ts"],"sourcesContent":["/*\n * Stubbed for web, where we don't use this file;\n */\nexport
|
|
1
|
+
{"version":3,"names":["withReanimatedTimer","advanceAnimationByTime","advanceAnimationByFrame","setUpTests","getAnimatedStyle"],"sources":["jestUtils.web.ts"],"sourcesContent":["/*\n * Stubbed for web, where we don't use this file;\n */\n\nexport function withReanimatedTimer() {\n // NOOP\n}\n\nexport function advanceAnimationByTime() {\n // NOOP\n}\n\nexport function advanceAnimationByFrame() {\n // NOOP\n}\n\nexport function setUpTests() {\n // NOOP\n}\n\nexport function getAnimatedStyle() {\n // NOOP\n}\n"],"mappings":"AAAA;AACA;AACA;;AAEA,OAAO,SAASA,mBAAmBA,CAAA,EAAG;EACpC;AAAA;AAGF,OAAO,SAASC,sBAAsBA,CAAA,EAAG;EACvC;AAAA;AAGF,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC;AAAA;AAGF,OAAO,SAASC,UAAUA,CAAA,EAAG;EAC3B;AAAA;AAGF,OAAO,SAASC,gBAAgBA,CAAA,EAAG;EACjC;AAAA"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* with the version used to build the native part of the library in runtime.
|
|
4
4
|
* Remember to keep this in sync with the version declared in `package.json`
|
|
5
5
|
*/
|
|
6
|
-
export const jsVersion = '3.5.
|
|
6
|
+
export const jsVersion = '3.5.4';
|
|
7
7
|
//# sourceMappingURL=jsVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["jsVersion"],"sources":["jsVersion.ts"],"sourcesContent":["/**\n * We hardcode the version of Reanimated here in order to compare it\n * with the version used to build the native part of the library in runtime.\n * Remember to keep this in sync with the version declared in `package.json`\n */\nexport const jsVersion = '3.5.
|
|
1
|
+
{"version":3,"names":["jsVersion"],"sources":["jsVersion.ts"],"sourcesContent":["/**\n * We hardcode the version of Reanimated here in order to compare it\n * with the version used to build the native part of the library in runtime.\n * Remember to keep this in sync with the version declared in `package.json`\n */\nexport const jsVersion = '3.5.4';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAG,OAAO"}
|
|
@@ -16,6 +16,6 @@ export interface ScrollHandlers<TContext extends __Context> {
|
|
|
16
16
|
onMomentumEnd?: ScrollHandler<TContext>;
|
|
17
17
|
}
|
|
18
18
|
type OnScroll = (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
19
|
-
|
|
20
|
-
export declare const useAnimatedScrollHandler:
|
|
19
|
+
type useAnimatedScrollHandlerType = <TContext extends __Context = Record<string, never>>(handlers: ScrollHandlers<TContext> | ScrollHandler<TContext>, deps?: DependencyList) => OnScroll;
|
|
20
|
+
export declare const useAnimatedScrollHandler: useAnimatedScrollHandlerType;
|
|
21
21
|
export {};
|
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
import './publicGlobals';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
2
|
+
export type { WorkletRuntime } from './core';
|
|
3
|
+
export { runOnJS, runOnUI, createWorkletRuntime, makeMutable, makeShareableCloneRecursive, isReanimated3, isConfigured, enableLayoutAnimations, getViewProp, } from './core';
|
|
4
|
+
export type { GestureHandlers, AnimatedRef, ScrollHandler, ScrollHandlers, DerivedValue, FrameCallback, } from './hook';
|
|
5
|
+
export { useAnimatedProps, useEvent, useHandler, useWorkletCallback, useSharedValue, useReducedMotion, useAnimatedStyle, useAnimatedGestureHandler, useAnimatedReaction, useAnimatedRef, useAnimatedScrollHandler, useDerivedValue, useAnimatedSensor, useFrameCallback, useAnimatedKeyboard, useScrollViewOffset, } from './hook';
|
|
6
|
+
export type { DelayAnimation, RepeatAnimation, SequenceAnimation, StyleLayoutAnimation, WithTimingConfig, TimingAnimation, WithSpringConfig, SpringAnimation, WithDecayConfig, DecayAnimation, } from './animation';
|
|
7
|
+
export { cancelAnimation, defineAnimation, withTiming, withSpring, withDecay, withDelay, withRepeat, withSequence, } from './animation';
|
|
8
|
+
export type { ExtrapolationConfig, ExtrapolationType } from './interpolation';
|
|
9
|
+
export { Extrapolation, interpolate, clamp } from './interpolation';
|
|
10
|
+
export type { InterpolationOptions, InterpolateConfig, InterpolateRGB, InterpolateHSV, } from './interpolateColor';
|
|
11
|
+
export { Extrapolate, ColorSpace, interpolateColor, useInterpolateConfig, } from './interpolateColor';
|
|
12
|
+
export type { EasingFunction, EasingFn, EasingFunctionFactory, EasingFactoryFn, } from './Easing';
|
|
13
|
+
export { Easing } from './Easing';
|
|
8
14
|
export { measure, dispatchCommand, scrollTo, setGestureState, } from './NativeMethods';
|
|
9
15
|
export { setNativeProps } from './SetNativeProps';
|
|
10
|
-
export {
|
|
16
|
+
export type { ParsedColorArray } from './Colors';
|
|
17
|
+
export { isColor, processColor, convertToRGBA } from './Colors';
|
|
11
18
|
export { createAnimatedPropAdapter } from './PropAdapters';
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
19
|
+
export type { LayoutAnimation, EntryAnimationsValues, ExitAnimationsValues, EntryExitAnimationFunction, LayoutAnimationsValues, LayoutAnimationFunction, ILayoutAnimationBuilder, IEntryExitAnimationBuilder, } from './layoutReanimation';
|
|
20
|
+
export { BaseAnimationBuilder, ComplexAnimationBuilder, Keyframe, FlipInXUp, FlipInYLeft, FlipInXDown, FlipInYRight, FlipInEasyX, FlipInEasyY, FlipOutXUp, FlipOutYLeft, FlipOutXDown, FlipOutYRight, FlipOutEasyX, FlipOutEasyY, StretchInX, StretchInY, StretchOutX, StretchOutY, FadeIn, FadeInRight, FadeInLeft, FadeInUp, FadeInDown, FadeOut, FadeOutRight, FadeOutLeft, FadeOutUp, FadeOutDown, SlideInRight, SlideInLeft, SlideOutRight, SlideOutLeft, SlideInUp, SlideInDown, SlideOutUp, SlideOutDown, ZoomIn, ZoomInRotate, ZoomInLeft, ZoomInRight, ZoomInUp, ZoomInDown, ZoomInEasyUp, ZoomInEasyDown, ZoomOut, ZoomOutRotate, ZoomOutLeft, ZoomOutRight, ZoomOutUp, ZoomOutDown, ZoomOutEasyUp, ZoomOutEasyDown, BounceIn, BounceInDown, BounceInUp, BounceInLeft, BounceInRight, BounceOut, BounceOutDown, BounceOutUp, BounceOutLeft, BounceOutRight, LightSpeedInRight, LightSpeedInLeft, LightSpeedOutRight, LightSpeedOutLeft, PinwheelIn, PinwheelOut, RotateInDownLeft, RotateInDownRight, RotateInUpLeft, RotateInUpRight, RotateOutDownLeft, RotateOutDownRight, RotateOutUpLeft, RotateOutUpRight, RollInLeft, RollInRight, RollOutLeft, RollOutRight, Layout, LinearTransition, FadingTransition, SequencedTransition, JumpingTransition, CurvedTransition, EntryExitTransition, combineTransition, SharedTransition, SharedTransitionType, } from './layoutReanimation';
|
|
21
|
+
export type { ComponentCoords } from './utils';
|
|
22
|
+
export { getRelativeCoords, isSharedValue } from './utils';
|
|
23
|
+
export type { StyleProps, SharedValue, AnimatableValueObject, AnimatableValue, AnimationObject, SensorConfig, Animation, AnimatedSensor, AnimationCallback, Value3D, ValueRotation, AnimatedKeyboardInfo, AnimatedKeyboardOptions, MeasuredDimensions, } from './commonTypes';
|
|
24
|
+
export { SensorType, IOSReferenceFrame, InterfaceOrientation, KeyboardState, ReduceMotion, } from './commonTypes';
|
|
25
|
+
export type { FrameInfo } from './frameCallback';
|
|
16
26
|
export { getUseOfValueInStyleWarning } from './pluginUtils';
|
|
17
27
|
export { withReanimatedTimer, advanceAnimationByTime, advanceAnimationByFrame, setUpTests, getAnimatedStyle, } from './jestUtils';
|
|
18
28
|
export type { Adaptable, AdaptTransforms, AnimateProps, AnimatedProps, AnimatedTransform, TransformStyleTypes, TransformArrayItem, AnimateStyle, AnimatedStyle, AnimatedStyleProp, StylesOrDefault, } from './helperTypes';
|
|
19
29
|
export type { AnimatedScrollViewProps } from './component/ScrollView';
|
|
20
30
|
export type { FlatListPropsWithLayout } from './component/FlatList';
|
|
31
|
+
export { startMapper, stopMapper } from './mappers';
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
declare
|
|
2
|
-
export
|
|
1
|
+
export declare function withReanimatedTimer(): void;
|
|
2
|
+
export declare function advanceAnimationByTime(): void;
|
|
3
|
+
export declare function advanceAnimationByFrame(): void;
|
|
4
|
+
export declare function setUpTests(): void;
|
|
5
|
+
export declare function getAnimatedStyle(): void;
|
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { Platform } from 'react-native';
|
|
2
2
|
|
|
3
|
+
// This type is necessary since some libraries tend to do a lib check
|
|
4
|
+
// and this file causes type errors on `global` access.
|
|
5
|
+
type localGlobal = typeof global & Record<string, unknown>;
|
|
6
|
+
|
|
3
7
|
export function isJest(): boolean {
|
|
4
8
|
return !!process.env.JEST_WORKER_ID;
|
|
5
9
|
}
|
|
6
10
|
|
|
7
11
|
export function isChromeDebugger(): boolean {
|
|
8
|
-
return
|
|
12
|
+
return (
|
|
13
|
+
!(global as localGlobal).nativeCallSyncHook ||
|
|
14
|
+
!!(global as localGlobal).__REMOTEDEV__
|
|
15
|
+
);
|
|
9
16
|
}
|
|
10
17
|
|
|
11
18
|
export function isWeb(): boolean {
|
|
@@ -32,13 +39,15 @@ export function isWindowAvailable() {
|
|
|
32
39
|
// the window object is unavailable when building the server portion of a site that uses SSG
|
|
33
40
|
// this function shouldn't be used to conditionally render components
|
|
34
41
|
// https://www.joshwcomeau.com/react/the-perils-of-rehydration/
|
|
42
|
+
// @ts-ignore Fallback if `window` is undefined.
|
|
35
43
|
return typeof window !== 'undefined';
|
|
36
44
|
}
|
|
37
45
|
|
|
38
46
|
export function isReducedMotion() {
|
|
39
47
|
return isWeb()
|
|
40
48
|
? isWindowAvailable()
|
|
41
|
-
?
|
|
49
|
+
? // @ts-ignore Fallback if `window` is undefined.
|
|
50
|
+
!window.matchMedia('(prefers-reduced-motion: no-preference)').matches
|
|
42
51
|
: false
|
|
43
|
-
: global._REANIMATED_IS_REDUCED_MOTION ?? false;
|
|
52
|
+
: (global as localGlobal)._REANIMATED_IS_REDUCED_MOTION ?? false;
|
|
44
53
|
}
|
|
@@ -28,7 +28,7 @@ export interface ScrollHandlers<TContext extends __Context> {
|
|
|
28
28
|
type OnScroll = (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
29
29
|
|
|
30
30
|
// TODO TYPESCRIPT This is a temporary type to get rid of .d.ts file.
|
|
31
|
-
|
|
31
|
+
type useAnimatedScrollHandlerType = <
|
|
32
32
|
TContext extends __Context = Record<string, never>
|
|
33
33
|
>(
|
|
34
34
|
handlers: ScrollHandlers<TContext> | ScrollHandler<TContext>,
|
|
@@ -95,4 +95,4 @@ export const useAnimatedScrollHandler = function <TContext extends __Context>(
|
|
|
95
95
|
// TODO TYPESCRIPT This temporary cast is to get rid of .d.ts file.
|
|
96
96
|
) as any;
|
|
97
97
|
// TODO TYPESCRIPT This temporary cast is to get rid of .d.ts file.
|
|
98
|
-
} as unknown as
|
|
98
|
+
} as unknown as useAnimatedScrollHandlerType;
|
package/src/reanimated2/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './publicGlobals';
|
|
2
2
|
|
|
3
|
+
export type { WorkletRuntime } from './core';
|
|
3
4
|
export {
|
|
4
5
|
runOnJS,
|
|
5
6
|
runOnUI,
|
|
6
7
|
createWorkletRuntime,
|
|
7
|
-
WorkletRuntime,
|
|
8
8
|
makeMutable,
|
|
9
9
|
makeShareableCloneRecursive,
|
|
10
10
|
isReanimated3,
|
|
@@ -12,6 +12,14 @@ export {
|
|
|
12
12
|
enableLayoutAnimations,
|
|
13
13
|
getViewProp,
|
|
14
14
|
} from './core';
|
|
15
|
+
export type {
|
|
16
|
+
GestureHandlers,
|
|
17
|
+
AnimatedRef,
|
|
18
|
+
ScrollHandler,
|
|
19
|
+
ScrollHandlers,
|
|
20
|
+
DerivedValue,
|
|
21
|
+
FrameCallback,
|
|
22
|
+
} from './hook';
|
|
15
23
|
export {
|
|
16
24
|
useAnimatedProps,
|
|
17
25
|
useEvent,
|
|
@@ -21,65 +29,58 @@ export {
|
|
|
21
29
|
useReducedMotion,
|
|
22
30
|
useAnimatedStyle,
|
|
23
31
|
useAnimatedGestureHandler,
|
|
24
|
-
GestureHandlers,
|
|
25
32
|
useAnimatedReaction,
|
|
26
|
-
AnimatedRef,
|
|
27
33
|
useAnimatedRef,
|
|
28
34
|
useAnimatedScrollHandler,
|
|
29
|
-
ScrollHandler,
|
|
30
|
-
ScrollHandlers,
|
|
31
35
|
useDerivedValue,
|
|
32
|
-
DerivedValue,
|
|
33
36
|
useAnimatedSensor,
|
|
34
37
|
useFrameCallback,
|
|
35
|
-
FrameCallback,
|
|
36
38
|
useAnimatedKeyboard,
|
|
37
39
|
useScrollViewOffset,
|
|
38
40
|
} from './hook';
|
|
39
|
-
export {
|
|
41
|
+
export type {
|
|
40
42
|
DelayAnimation,
|
|
41
43
|
RepeatAnimation,
|
|
42
44
|
SequenceAnimation,
|
|
43
45
|
StyleLayoutAnimation,
|
|
44
|
-
cancelAnimation,
|
|
45
|
-
defineAnimation,
|
|
46
|
-
withTiming,
|
|
47
46
|
WithTimingConfig,
|
|
48
47
|
TimingAnimation,
|
|
49
|
-
withSpring,
|
|
50
48
|
WithSpringConfig,
|
|
51
49
|
SpringAnimation,
|
|
52
|
-
withDecay,
|
|
53
50
|
WithDecayConfig,
|
|
54
51
|
DecayAnimation,
|
|
52
|
+
} from './animation';
|
|
53
|
+
export {
|
|
54
|
+
cancelAnimation,
|
|
55
|
+
defineAnimation,
|
|
56
|
+
withTiming,
|
|
57
|
+
withSpring,
|
|
58
|
+
withDecay,
|
|
55
59
|
withDelay,
|
|
56
60
|
withRepeat,
|
|
57
61
|
withSequence,
|
|
58
62
|
} from './animation';
|
|
59
|
-
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
ExtrapolationType,
|
|
63
|
-
interpolate,
|
|
64
|
-
clamp,
|
|
65
|
-
} from './interpolation';
|
|
66
|
-
export {
|
|
67
|
-
Extrapolate,
|
|
63
|
+
export type { ExtrapolationConfig, ExtrapolationType } from './interpolation';
|
|
64
|
+
export { Extrapolation, interpolate, clamp } from './interpolation';
|
|
65
|
+
export type {
|
|
68
66
|
InterpolationOptions,
|
|
69
|
-
interpolateColor,
|
|
70
|
-
ColorSpace,
|
|
71
67
|
InterpolateConfig,
|
|
72
|
-
useInterpolateConfig,
|
|
73
68
|
InterpolateRGB,
|
|
74
69
|
InterpolateHSV,
|
|
75
70
|
} from './interpolateColor';
|
|
76
71
|
export {
|
|
72
|
+
Extrapolate,
|
|
73
|
+
ColorSpace,
|
|
74
|
+
interpolateColor,
|
|
75
|
+
useInterpolateConfig,
|
|
76
|
+
} from './interpolateColor';
|
|
77
|
+
export type {
|
|
77
78
|
EasingFunction,
|
|
78
79
|
EasingFn,
|
|
79
80
|
EasingFunctionFactory,
|
|
80
81
|
EasingFactoryFn,
|
|
81
|
-
Easing,
|
|
82
82
|
} from './Easing';
|
|
83
|
+
export { Easing } from './Easing';
|
|
83
84
|
export {
|
|
84
85
|
measure,
|
|
85
86
|
dispatchCommand,
|
|
@@ -87,17 +88,10 @@ export {
|
|
|
87
88
|
setGestureState,
|
|
88
89
|
} from './NativeMethods';
|
|
89
90
|
export { setNativeProps } from './SetNativeProps';
|
|
90
|
-
export {
|
|
91
|
-
|
|
92
|
-
processColor,
|
|
93
|
-
ParsedColorArray,
|
|
94
|
-
convertToRGBA,
|
|
95
|
-
} from './Colors';
|
|
91
|
+
export type { ParsedColorArray } from './Colors';
|
|
92
|
+
export { isColor, processColor, convertToRGBA } from './Colors';
|
|
96
93
|
export { createAnimatedPropAdapter } from './PropAdapters';
|
|
97
|
-
export {
|
|
98
|
-
BaseAnimationBuilder,
|
|
99
|
-
ComplexAnimationBuilder,
|
|
100
|
-
Keyframe,
|
|
94
|
+
export type {
|
|
101
95
|
LayoutAnimation,
|
|
102
96
|
EntryAnimationsValues,
|
|
103
97
|
ExitAnimationsValues,
|
|
@@ -106,6 +100,11 @@ export {
|
|
|
106
100
|
LayoutAnimationFunction,
|
|
107
101
|
ILayoutAnimationBuilder,
|
|
108
102
|
IEntryExitAnimationBuilder,
|
|
103
|
+
} from './layoutReanimation';
|
|
104
|
+
export {
|
|
105
|
+
BaseAnimationBuilder,
|
|
106
|
+
ComplexAnimationBuilder,
|
|
107
|
+
Keyframe,
|
|
109
108
|
// Flip
|
|
110
109
|
FlipInXUp,
|
|
111
110
|
FlipInYLeft,
|
|
@@ -207,29 +206,32 @@ export {
|
|
|
207
206
|
SharedTransition,
|
|
208
207
|
SharedTransitionType,
|
|
209
208
|
} from './layoutReanimation';
|
|
210
|
-
export {
|
|
211
|
-
export {
|
|
209
|
+
export type { ComponentCoords } from './utils';
|
|
210
|
+
export { getRelativeCoords, isSharedValue } from './utils';
|
|
211
|
+
export type {
|
|
212
212
|
StyleProps,
|
|
213
213
|
SharedValue,
|
|
214
214
|
AnimatableValueObject,
|
|
215
215
|
AnimatableValue,
|
|
216
216
|
AnimationObject,
|
|
217
|
-
Animation,
|
|
218
|
-
SensorType,
|
|
219
|
-
IOSReferenceFrame,
|
|
220
217
|
SensorConfig,
|
|
218
|
+
Animation,
|
|
221
219
|
AnimatedSensor,
|
|
222
220
|
AnimationCallback,
|
|
223
221
|
Value3D,
|
|
224
222
|
ValueRotation,
|
|
225
|
-
InterfaceOrientation,
|
|
226
|
-
KeyboardState,
|
|
227
223
|
AnimatedKeyboardInfo,
|
|
228
|
-
MeasuredDimensions,
|
|
229
224
|
AnimatedKeyboardOptions,
|
|
225
|
+
MeasuredDimensions,
|
|
226
|
+
} from './commonTypes';
|
|
227
|
+
export {
|
|
228
|
+
SensorType,
|
|
229
|
+
IOSReferenceFrame,
|
|
230
|
+
InterfaceOrientation,
|
|
231
|
+
KeyboardState,
|
|
230
232
|
ReduceMotion,
|
|
231
233
|
} from './commonTypes';
|
|
232
|
-
export { FrameInfo } from './frameCallback';
|
|
234
|
+
export type { FrameInfo } from './frameCallback';
|
|
233
235
|
export { getUseOfValueInStyleWarning } from './pluginUtils';
|
|
234
236
|
export {
|
|
235
237
|
withReanimatedTimer,
|
|
@@ -253,3 +255,4 @@ export type {
|
|
|
253
255
|
} from './helperTypes';
|
|
254
256
|
export type { AnimatedScrollViewProps } from './component/ScrollView';
|
|
255
257
|
export type { FlatListPropsWithLayout } from './component/FlatList';
|
|
258
|
+
export { startMapper, stopMapper } from './mappers';
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Stubbed for web, where we don't use this file;
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
export function withReanimatedTimer() {
|
|
6
|
+
// NOOP
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function advanceAnimationByTime() {
|
|
10
|
+
// NOOP
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function advanceAnimationByFrame() {
|
|
14
|
+
// NOOP
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function setUpTests() {
|
|
18
|
+
// NOOP
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function getAnimatedStyle() {
|
|
22
|
+
// NOOP
|
|
23
|
+
}
|