{"version":3,"sources":["useValue.js"],"names":["useValue","initialValue","ref","React","useRef","current","AnimatedValue"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEe,SAASA,QAAT,CAAkBC,YAAlB,EAAgC;AAC7C,QAAMC,GAAG,GAAGC,eAAMC,MAAN,CAAa,IAAb,CAAZ;;AACA,MAAIF,GAAG,CAACG,OAAJ,KAAgB,IAApB,EAA0B;AACxBH,IAAAA,GAAG,CAACG,OAAJ,GAAc,IAAIC,sBAAJ,CAAkBL,YAAlB,CAAd;AACD;;AACD,SAAOC,GAAG,CAACG,OAAX;AACD","sourcesContent":["import React from 'react';\nimport AnimatedValue from './core/AnimatedValue';\n\nexport default function useValue(initialValue) {\n const ref = React.useRef(null);\n if (ref.current === null) {\n ref.current = new AnimatedValue(initialValue);\n }\n return ref.current;\n}\n"]}