Skip to content

Commit

Permalink
added properties to fix layout on ipad
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas committed Dec 6, 2021
1 parent b31eb39 commit afdc4b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/SVGImage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const SVGImage = props => (
<Image
style={StyleUtils.getWidthAndHeightStyle(props.width, props.height)}
source={props.src}
resizeMode={props.resizeMode}
/>
);

Expand Down
3 changes: 3 additions & 0 deletions src/components/SVGImage/propTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const propTypes = {

/** The height of the image. */
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,

/** The resize mode of the image. */
resizeMode: PropTypes.oneOf('cover', 'contain', 'stretch', 'repeat', 'center'),
};

export default propTypes;
1 change: 1 addition & 0 deletions src/pages/signin/SignInPageLayout/SignInPageLayoutWide.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const SignInPageLayoutWide = props => (
width="100%"
height="100%"
src={backgroundStyle.backgroundImageUri}
resizeMode={props.isMediumScreenWidth ? 'contain' : 'cover'}
/>
</View>
</View>
Expand Down

0 comments on commit afdc4b4

Please sign in to comment.