DEV Community

skptricks
skptricks

Posted on

React Native Responsive Image Scale To Fit Example - Android

Post Link : React Native Responsive Image Scale To Fit Example - Android

This tutorial explains how to display responsive image in react native application. The best part about responsive image is automatically adjust to fit the size of the screen or auto fit to mobile device screen. if you are remember about component in react native application it does not keep image aspect ratio which results in the image being stretched or cropped. So here we are going to discuss about new library that helps to create responsive image in android or ios device easily.
react-native-scalable-image solves this problem by calculating the image size and resizing the image when rendering. This library provides an component which scales width or height automatically to keep the aspect ratio.

React Native Responsive Image Scale To Fit Example - Android

Top comments (1)

Collapse
 
arximughal profile image
Muhammad Arslan Aslam

It would've been much better if you could've just posted the content of the post here as well other than just a link, Just sayin'