Post Link : React Native Responsive Image Width and Height Example
This tutorial explains how to create and display responsive image in react native application. In order to display responsive image, we are using Dimensions Component of react-native package. Dimensions.get('window').width helps to calculate the size of the image. For example, if the ratio is always 16x9, the height is 9/16th of the width of the image. The width equals device width.
Top comments (0)