{"ast":null,"code":"import createAnimation from \"./createAnimation\";\nvar animationRegistry = {};\nexport function registerAnimation(animationName, animation) {\n  animationRegistry[animationName] = animation;\n}\nexport function getAnimationByName(animationName) {\n  return animationRegistry[animationName];\n}\nexport function getAnimationNames() {\n  return Object.keys(animationRegistry);\n}\nexport function initializeRegistryWithDefinitions(definitions) {\n  Object.keys(definitions).forEach(function (animationName) {\n    registerAnimation(animationName, createAnimation(definitions[animationName]));\n  });\n}","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-animatable/registry.js"],"names":["createAnimation","animationRegistry","registerAnimation","animationName","animation","getAnimationByName","getAnimationNames","Object","keys","initializeRegistryWithDefinitions","definitions","forEach"],"mappings":"AAAA,OAAOA,eAAP;AAEA,IAAMC,iBAAiB,GAAG,EAA1B;AAEA,OAAO,SAASC,iBAAT,CAA2BC,aAA3B,EAA0CC,SAA1C,EAAqD;AAC1DH,EAAAA,iBAAiB,CAACE,aAAD,CAAjB,GAAmCC,SAAnC;AACD;AAED,OAAO,SAASC,kBAAT,CAA4BF,aAA5B,EAA2C;AAChD,SAAOF,iBAAiB,CAACE,aAAD,CAAxB;AACD;AAED,OAAO,SAASG,iBAAT,GAA6B;AAClC,SAAOC,MAAM,CAACC,IAAP,CAAYP,iBAAZ,CAAP;AACD;AAED,OAAO,SAASQ,iCAAT,CAA2CC,WAA3C,EAAwD;AAC7DH,EAAAA,MAAM,CAACC,IAAP,CAAYE,WAAZ,EAAyBC,OAAzB,CAAiC,UAAAR,aAAa,EAAI;AAChDD,IAAAA,iBAAiB,CACfC,aADe,EAEfH,eAAe,CAACU,WAAW,CAACP,aAAD,CAAZ,CAFA,CAAjB;AAID,GALD;AAMD","sourcesContent":["import createAnimation from './createAnimation';\n\nconst animationRegistry = {};\n\nexport function registerAnimation(animationName, animation) {\n  animationRegistry[animationName] = animation;\n}\n\nexport function getAnimationByName(animationName) {\n  return animationRegistry[animationName];\n}\n\nexport function getAnimationNames() {\n  return Object.keys(animationRegistry);\n}\n\nexport function initializeRegistryWithDefinitions(definitions) {\n  Object.keys(definitions).forEach(animationName => {\n    registerAnimation(\n      animationName,\n      createAnimation(definitions[animationName]),\n    );\n  });\n}\n"]},"metadata":{},"sourceType":"module"}