ReactNative实现翻转动画最终实现的翻转效果:
翻转.2019-03-20 14_28_17.gif
代码:
import React, { Component } from 'react';
import {reactnative开发
StyleSheet,
SafeAreaView,
Text,
View,
Easing,
TouchableOpacity,
Animated
} from 'react-native';
export default class Interpolate extends Component {
constructor(props) {
super(props)
this.state = {
animatedValue: new Animated.Value(0),
color:'red',
text:'正⾯'
}
this.state.animatedValue,
{
toValue: 1,
duration: 3000,
easing: Easing.in,
}
);
}
_startAnimated() {
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论