diff --git a/src/pages/signin/SignInPageLayout/index.js b/src/pages/signin/SignInPageLayout/index.js index 5465a3189818..c5fab7ccc8a9 100644 --- a/src/pages/signin/SignInPageLayout/index.js +++ b/src/pages/signin/SignInPageLayout/index.js @@ -98,6 +98,8 @@ function SignInPageLayout(props) { const scrollViewStyles = useMemo(() => scrollViewContentContainerStyles(styles), [styles]); + const backgroundImageHeight = Math.max(variables.signInContentMinHeight, containerHeight); + return ( {!props.shouldShowSmallScreen ? ( @@ -163,13 +165,15 @@ function SignInPageLayout(props) { keyboardShouldPersistTaps="handled" ref={scrollViewRef} > - - + + + + ({ + backgroundColor: theme.signInPage, +}); + +export default getSignInBgStyles; diff --git a/src/styles/utils/getSignInBgStyles/index.ts b/src/styles/utils/getSignInBgStyles/index.ts new file mode 100644 index 000000000000..10c2e5783207 --- /dev/null +++ b/src/styles/utils/getSignInBgStyles/index.ts @@ -0,0 +1,5 @@ +import type GetSignInBgStyles from './types'; + +const getSignInBgStyles: GetSignInBgStyles = () => ({}); + +export default getSignInBgStyles; diff --git a/src/styles/utils/getSignInBgStyles/types.ts b/src/styles/utils/getSignInBgStyles/types.ts new file mode 100644 index 000000000000..4d3ddbe6153d --- /dev/null +++ b/src/styles/utils/getSignInBgStyles/types.ts @@ -0,0 +1,6 @@ +import type {ViewStyle} from 'react-native'; +import type {ThemeColors} from '@styles/theme/types'; + +type GetSignInBgStyles = (theme: ThemeColors) => ViewStyle; + +export default GetSignInBgStyles; diff --git a/src/styles/utils/index.ts b/src/styles/utils/index.ts index a45b7cdbcb34..b2c6d00559a7 100644 --- a/src/styles/utils/index.ts +++ b/src/styles/utils/index.ts @@ -22,6 +22,7 @@ import createReportActionContextMenuStyleUtils from './generators/ReportActionCo import createTooltipStyleUtils from './generators/TooltipStyleUtils'; import getContextMenuItemStyles from './getContextMenuItemStyles'; import getNavigationModalCardStyle from './getNavigationModalCardStyles'; +import getSignInBgStyles from './getSignInBgStyles'; import {compactContentContainerStyles} from './optionRowStyles'; import positioning from './positioning'; import type { @@ -1084,6 +1085,7 @@ const staticStyleUtils = { getCardStyles, getOpacityStyle, getMultiGestureCanvasContainerStyle, + getSignInBgStyles, }; const createStyleUtils = (theme: ThemeColors, styles: ThemeStyles) => ({