I have a react native animation function which rotates a Animated View component. The animation is working normally if its called directly. But if its called with a setState