【发布时间】:2019-09-27 14:25:35
【问题描述】:
在 react-native 中使用 Animated.Value() 的最佳方式是什么?
是否使用 useState() ?
const [fadeAnim] = useState(new Animated.Value(0))
或者
const fadeAnim = new Animated.Value(0)
React-native 文档:https://facebook.github.io/react-native/docs/animations
谢谢
【问题讨论】: