Check out example codes for "make image scale based on screen size". It will help you in understanding the concepts better.

Code Example 1

background-size: cover

Learn ReactJs, React Native from akashmittal.com