UNPKG

react-native-reanimated-carousel

Version:

Simple carousel component.fully implemented using Reanimated 2.Infinitely scrolling, very smooth.

2 lines 1.71 kB
Object.defineProperty(exports,"__esModule",{value:true});exports.handlerOffsetDirection=void 0;var _worklet_3103303330606_init_data={code:"function handlerOffsetDirection(handlerOffset,fixedDirection){if(fixedDirection===\"negative\")return-1;if(fixedDirection===\"positive\")return 1;if(handlerOffset.value===0)return-1;return Math.sign(handlerOffset.value);}",location:"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/handleroffset-direction.ts",sourceMap:"{\"version\":3,\"mappings\":\"AAIO,QAAAA,uBAAA,CAAAC,aAAA,CAAAC,cAAA,EAML,GAAIA,cAAc,GAAK,UAAvB,CAAmC,MAAO,CAAC,CAAR,CAEnC,GAAIA,cAAc,GAAK,UAAvB,CAAmC,MAAO,EAAP,CAEnC,GAAID,aAAa,CAACE,KAAdF,GAAwB,CAA5B,CAA+B,MAAO,CAAC,CAAR,CAE/B,MAAOG,KAAI,CAACC,IAALD,CAAUH,aAAa,CAACE,KAAxBC,CAAP,CAZK\",\"names\":[\"handlerOffsetDirection\",\"handlerOffset\",\"fixedDirection\",\"value\",\"Math\",\"sign\"],\"sources\":[\"/home/runner/work/react-native-reanimated-carousel/react-native-reanimated-carousel/src/utils/handleroffset-direction.ts\"]}",version:"3.10.1"};var handlerOffsetDirection=function(){var _e=[new global.Error(),1,-27];var handlerOffsetDirection=function handlerOffsetDirection(handlerOffset,fixedDirection){if(fixedDirection==="negative")return-1;if(fixedDirection==="positive")return 1;if(handlerOffset.value===0)return-1;return Math.sign(handlerOffset.value);};handlerOffsetDirection.__closure={};handlerOffsetDirection.__workletHash=3103303330606;handlerOffsetDirection.__initData=_worklet_3103303330606_init_data;handlerOffsetDirection.__stackDetails=_e;return handlerOffsetDirection;}();exports.handlerOffsetDirection=handlerOffsetDirection; //# sourceMappingURL=handleroffset-direction.js.map