I have been using an Animated.View to show a horizontal slide in slide out effect of that view, however when I call the function it is not working, below is my code :