[change] use ES2015 modules

Ref #102
This commit is contained in:
Nicolas Gallagher
2017-06-10 13:51:53 -07:00
parent 060d96b42d
commit 43d297bf59
101 changed files with 208 additions and 238 deletions

View File

@@ -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;