【问题标题】:How can I fix the "(0, _reactNativeRedash.withTransition) is not a function" error?如何修复“(0,_reactNativeRedash.withTransition)不是函数”错误?
【发布时间】:2021-01-10 21:38:36
【问题描述】:

在创建动画时得到这个:

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

这个函数确实存在,但不知何故我得到了这个错误。我该如何解决? (目前使用 SDK 39 和 react-native-redash 9.1.2)

【问题讨论】:

  • 你是如何声明这个变量的?如果您收到此错误,那么显然它没有您期望的值。

标签: reactjs react-native animation typeerror transition


【解决方案1】:

这是因为 wcandillon 在 2020 年初完全重构了这一机制。

卸载 react native redash 并安装一个兼容版本,比如 v9.3.1 就可以了。

【讨论】:

    猜你喜欢
    • 2019-12-25
    • 2021-06-12
    • 2019-07-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-26
    • 2019-07-10
    • 2020-07-25
    • 2019-11-22
    相关资源
    最近更新 更多