【发布时间】:2019-04-14 01:29:30
【问题描述】:
我是打字稿的新手。 linter 已经能够为我快速修复,但以下代码部分没有提供可用于 linter 修复的快速操作:
问题消息是“类型'void'不可分配给类型'CompositeAnimation'.ts(2322)”
Animated.parallel([
Animated.spring(this.position, {
toValue: ({ x: 0, y: 0 }),
}).start(),
Animated.spring(this.swipeCardPosition, {
toValue: ({ x: 0, y: -SCREEN_HEIGHT }),
}).start(),
]).start();
【问题讨论】:
标签: typescript react-native animation