React Native Animated singleValue.stopTracking is not a function

The value you wish to animate must be an instance of Animated.Value, or one of its subtypes. When you initialize your state, it should look something like this:

getInitialState() {
  return { absoluteChangeX: new Animated.Value(0) };
}

The fact that the type declaration in the framework method is any is just a lack of constraint, not an explicit invitation to pass any value into it.

See the Animated docs for more examples.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)