MCPcopy Index your code
hub / github.com/oblador/react-native-animatable / getCompiledAnimation

Function getCompiledAnimation

createAnimatableComponent.js:74–83  ·  view source on GitHub ↗
(animation)

Source from the content-addressed store, hash-verified

72}
73
74function getCompiledAnimation(animation) {
75 if (typeof animation === 'string') {
76 const compiledAnimation = getAnimationByName(animation);
77 if (!compiledAnimation) {
78 throw new Error(`No animation registred by the name of ${animation}`);
79 }
80 return compiledAnimation;
81 }
82 return createAnimation(animation);
83}
84
85function makeInterpolatedStyle(compiledAnimation, animationValue) {
86 const style = {};

Callers 2

constructorMethod · 0.85
setAnimationMethod · 0.85

Calls 2

getAnimationByNameFunction · 0.90
createAnimationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…