I want to show image in my feed list like facebook if I use resize mode 'contains' it show white space before and after the image please tell me any possible way to resize my image to view in proper aspect ration with white spaces around.
Asked
Active
Viewed 238 times
-1
-
Will suggest you to share part of the code that you're doing, and best with a screenshot of the result. It helps us to visualize and provide better suggestion. – Tommy Leong May 26 '21 at 08:07
1 Answers
0
try to use resizeMode : stretch
or resizeMode : cover
it will cover the whole view. Also ensure any padding or margin in your view. If have any padding in your parent view of image, remove and try it.
see this link: react native image reize modes

Pandi_Snkl
- 476
- 5
- 16