- first import the animation libraray
npm install react-native-animatable
Import that library
import * as Animate from 'react-native-animatable';
Example
class Darshit extends React.Component{
render(){
return(
<Animate.View animation="rotate" iterationCount="infinite">
<Text>Hello Gajjar Darshit</Text>
</Animate.View>
)
}
}