【问题标题】:Why doesn't the animation-name property work in React Native?为什么动画名称属性在 React Native 中不起作用?
【发布时间】:2020-11-28 03:45:49
【问题描述】:

为什么animation-name? 属性似乎在 React Native 中不起作用? 我收到此错误: Invariant Violation: "animationName" is not a valid style property.

【问题讨论】:

    标签: reactjs react-native animation css-animations


    【解决方案1】:

    React-native 不适用于 DOM(就像普通的网络浏览器那样),但有自己的组件来做某些事情,例如动画。

    您可以使用Animated LayoutAnimation 来执行此操作

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-08
      • 2022-06-13
      • 1970-01-01
      • 1970-01-01
      • 2016-12-25
      • 2016-08-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多