How can I fix the "(0, _reactNativeRedash.withTransition) is not a function" error?

Viewed 793

Getting this while creating an animation:

const active = new Value(1);
    
  const transition = withTransition(active, { duration: 100 });
  const activeTransition = new Value(0);

This function actually exists, but somehow I'm getting this error. How can I fix that? (currently using SDK 39 and react-native-redash 9.1.2)

1 Answers

This is because wcandillon completelly refatored this mechanism in early 2020.

Uninstall react native redash and install a compatible version, like v9.3.1 and it will work.

Related