1

Looking at these two threads

  1. Github
  2. ProductPains

it seems as animations are ported over to the native thread and performs them natively. Am I correct if I think that all the animations are done natively now or we should enable it manualy? If I am correct, is it production ready?

1 Answer 1

1

So it turns out that you need to include userNativeDriver:true inside the animation configuration whenever you want the animation to offload from the js thread.

Example:

_animate = () => {
    Animated.timing(this.state.animValue, {
      toValue: 1,
      duration: 500,
      useNativeDriver: true,
    }).start();
  };
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.