TutorialsCourses
Course Menu
Master React Native Animations

Divide

Divide 2 values.

const position = new Animated.Value(100);
const cutIt = new Animated.Value(50);

const positionWithOffset = Animated.divide(position, cutIt);

// value = 2;

Live Demo