MCPcopy
hub / github.com/react-native-modal/react-native-modal / makeAnimation

Function makeAnimation

src/utils.ts:74–79  ·  view source on GitHub ↗
(name: string, obj: CustomAnimation)

Source from the content-addressed store, hash-verified

72export const reversePercentage = (x: number) => -(x - 1);
73
74const makeAnimation = (name: string, obj: CustomAnimation): void => {
75 animatable.registerAnimation(
76 name,
77 animatable.createAnimation(obj) as CustomAnimation,
78 );
79};
80
81const isObject = (obj: any): obj is Object => {
82 return obj !== null && typeof obj === 'object';

Callers 1

buildAnimationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…