How to use the react-native-animatable.createAnimation function in react-native-animatable

To help you get started, we’ve selected a few react-native-animatable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-native-community / react-native-modal / src / utils.ts View on Github external
const makeAnimation = (name: string, obj: CustomAnimation): void => {
  animatable.registerAnimation(
    name,
    animatable.createAnimation(obj) as CustomAnimation,
  );
};