O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using images to mimic a video player

Images are an important part of any UI. Whether we use them to display icons, avatars, or pictures, with React Native you can do all of that. In this recipe, we will use images to create a video player. We will also display the icons from the local device, and a large image from a remote server on Amazon S3.

Getting ready

In order to follow the steps in this recipe, its necessary to create an empty app using the React Native CLI. Follow the instructions in the introduction of this chapter if you don't know to create an empty app. We are going to name it LoadingImages.

We are going to display a few images in our app to mimic a video player, so make sure to download the assets for this recipe.

How to do it...

  1. The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required