oblador / react-native-animatable

Standard set of easy to use animations and declarative transitions for React Native
MIT License
9.84k stars 702 forks source link

example for stopAnimation? #289

Closed Riicharr closed 5 years ago

Riicharr commented 5 years ago

Could anyone provide me with an example for stopAnimation? I been trying for some time but I can't get it to work. It says invoke it for the element but element does not have stopAnimation as a function

`import React, { Component } from 'react'; import { RefreshControl, ScrollView, AsyncStorage, Image, TouchableWithoutFeedback } from 'react-native'; import * as Animatable from 'react-native-animatable'; export default class ExampleView extends Component { handleViewRef = ref => this.view = ref;

bounce = () => console.log(this.view.ref.stopAnimation)

render() { return (

Bounce me!
);

} }`