【发布时间】:2017-06-15 09:36:07
【问题描述】:
我正在尝试使用插值对视图进行动画处理。我想获得我的 Animated.Value 的当前值,但不知道如何。我不明白如何使用React-native docs。
this.state = {
translateAnim: new Animated.Value(0)
}
DeviceEventEmitter.addListener('Accelerometer', function (data) {
console.log(this.state.translateAnim);
// returns an object, but I need a value in current moment
}
【问题讨论】:
标签: reactjs react-native react-native-android