React Native Resize Image To Fit View. A component s height and width determine its size on the screen. I searched how to make it and seems resizemode contain is good for that.
The general way to set the dimensions of a component is by adding a fixed width and height to style. Both are called the dimension of image view. Complete source code for app js lets checkout complete source code for image resize in react native.
However since i used resizemode contain the image keeps the position vertically centered which i don t want i want it to be vertically top.
Use heuristics to pick between resize and scale. A component s height and width determine its size on the screen. However since i used resizemode contain the image keeps the position vertically centered which i don t want i want it to be vertically top. Both are called the dimension of image view.