Enter Your Email Address to Watch This Lesson

Your link to unlock this lesson will be sent to this email address.

Unlock this lesson and all 985 of the free egghead.io lessons, plus get React content delivered directly to your inbox!



Existing egghead members will not see this. Sign in.

Use Flex to Scale React Native Background Image

1:44 React lesson by

In this lesson we will use Flexbox to scale a background image to fit on the screen of our React Native application.

Get the Code Now
click to level up

egghead.io comment guidelines

Avatar
egghead.io

In this lesson we will use Flexbox to scale a background image to fit on the screen of our React Native application.

Avatar
Sam

Hi thanks I've really enjoyed your RN lessons. I see at the end of the video you're also having the issue I've had with background images in that the content loads then there is a (sometimes significant) delay before the background loads. I was just wondering if this is to do with doing this in the development environment and then it doesn't happen on a 'proper' distributed app, or would the same behaviour happen on an app installed through the app store? Thanks

In reply to egghead.io
Avatar
Jason Brown

This should only happen in development mode, in production it will be instant. Also I used an extremely large background without even attempting to optimize anything.

In reply to Sam


HEY, QUICK QUESTION!
Joel's Head
Why are we asking?