forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Expensify#26923 from hoangzinh/df/26069
Fix background image is missing in Android native app
- Loading branch information
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
20 changes: 18 additions & 2 deletions
20
src/pages/signin/SignInPageLayout/BackgroundImage/index.android.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
import backgroundImage from '../../../../../assets/images/home-background--android.svg'; | ||
import React from 'react'; | ||
import AndroidBackgroundImage from '../../../../../assets/images/home-background--android.svg'; | ||
import styles from '../../../../styles/styles'; | ||
import defaultPropTypes from './propTypes'; | ||
|
||
export default backgroundImage; | ||
function BackgroundImage(props) { | ||
return ( | ||
<AndroidBackgroundImage | ||
pointerEvents={props.pointerEvents} | ||
width={props.width} | ||
style={styles.signInBackground} | ||
/> | ||
); | ||
} | ||
|
||
BackgroundImage.displayName = 'BackgroundImage'; | ||
BackgroundImage.propTypes = defaultPropTypes; | ||
|
||
export default BackgroundImage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/pages/signin/SignInPageLayout/BackgroundImage/propTypes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
const propTypes = { | ||
/** pointerEvents property to the SVG element */ | ||
pointerEvents: PropTypes.string.isRequired, | ||
|
||
/** The width of the image. */ | ||
width: PropTypes.number.isRequired, | ||
}; | ||
|
||
export default propTypes; |