In this recipe, we will learn the basics of animations. We will use an image to create a simple linear movement from the right to the left of the screen.
Creating simple animations
Getting ready
In order to go through this recipe, we need to create an empty app. Let's call it simple-animation.
We are going to use a PNG image of a cloud for this recipe. You can find the image in the recipe's repository hosted on GitHub at https://github.com/warlyware/react-native-cookbook/tree/master/chapter-6/simple-animation/assets/images. Place the image in the /assets/images folder for use in the app.