1

I have created a React-native app. The static images are showing properly in Debug mode but in Release(after creating main.jsbundle and adding it into project) the images Stretches.

I have gone through lots of suggestions on Github but could not find a solution. Some people suggested to use "svgs" instead of "pngs"

enter image description here

Muhammad Nayab
  • 1,612
  • 14
  • 14

2 Answers2

0

did u use resizeMode in image component?

<Image source={{ uri: '' }} style={{ }} resizeMode={'contain'} />
Yasin Ugurlu
  • 691
  • 5
  • 11
0

So after all the work and following multiple solutions offered on internet I realised that moving to SVGs is the only possible solution and it worked

Muhammad Nayab
  • 1,612
  • 14
  • 14