react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Images not rendering properly on ios after code-push with resizeMode center

Open Ashwin-Mothilal opened this issue 8 years ago • 41 comments

Steps to Reproduce

  1. React Native Image Component local image which matches resizeMode center
  2. Install the app from Xcode Production version
  3. Change the tintColor of the image or change text if you have
  4. Release using "code-push release-react ios "

Expected Behavior

Images should render properly as it is in dev version debug mode

Actual Behavior

Images with resizeMode "center" gets resizeMode "cover". I am mentioning "cover" because it matches with it in dev mode.

SCREENSHOTS

After CodePush to Production App - 1 Improper images

After CodePush to Production App - 1 Some proper images - Images representing Views, Comments, Attachments are looking good.

Expected / Debug Build

Environment

  • react-native-code-push version: 5.2.1
  • react-native version: 0.52.0
  • iOS/Android/Windows version: iOS version 11.2.6
  • Does this reproduce on a debug build or release build? Release

###Notes The App uses this tabbar component in React Navigation For the topbar it uses StackNavigator.

Ashwin-Mothilal avatar Mar 01 '18 15:03 Ashwin-Mothilal

use "contain". worked for me... resizeMethod={'resize'} resizeMode={'contain'}

khokanuzzaman avatar Apr 25 '22 05:04 khokanuzzaman