metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

[PS] Components fix local image styling

Open Cal-L opened this issue 2 years ago • 0 comments

Description

React Native's Image style behaves differently depending on which source our image is coming from. Flex works fine for remote images but flex:1 is not enough for remote images. For remote images, we need to set height and width to be undefined for flex to apply properly.

Technical Details

  • For components that take images and has flex:1 on the Image tag, set height and width = undefined

Acceptance Criteria

  • Components that take imageSource should render local sources properly

Cal-L avatar Aug 09 '22 22:08 Cal-L