mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-23 20:10:41 +08:00
@@ -37,13 +37,13 @@ class Flip extends React.Component {
|
||||
this._animate();
|
||||
}
|
||||
|
||||
_animate() {
|
||||
_animate = () => {
|
||||
this.state.theta.setValue(0);
|
||||
Animated.timing(this.state.theta, {
|
||||
toValue: 360,
|
||||
duration: 5000
|
||||
}).start(this._animate);
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
return (
|
||||
@@ -255,4 +255,4 @@ const examples = [
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = examples;
|
||||
export default examples;
|
||||
|
||||
Reference in New Issue
Block a user