Skip to content

Commit 5ad9230

Browse files
authored
Merge pull request Expensify#87845 from software-mansion-labs/jakubstec/fix-text-desc-overlaps-with-got-it-biometric-landscape
2 parents 98c11aa + ea75757 commit 5ad9230

1 file changed

Lines changed: 24 additions & 21 deletions

File tree

src/components/MultifactorAuthentication/components/OutcomeScreen/OutcomeScreenBase.tsx

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {loadIllustration} from '@components/Icon/IllustrationLoader';
88
import type {IllustrationName} from '@components/Icon/IllustrationLoader';
99
import RenderHTML from '@components/RenderHTML';
1010
import ScreenWrapper from '@components/ScreenWrapper';
11+
import ScrollView from '@components/ScrollView';
1112
import Text from '@components/Text';
1213
import {useMemoizedLazyAsset} from '@hooks/useLazyAsset';
1314
import useLocalize from '@hooks/useLocalize';
@@ -67,27 +68,29 @@ function OutcomeScreenBase({headerTitle, illustration, iconWidth, iconHeight, ti
6768
onBackButtonPress={onClose}
6869
shouldShowBackButton
6970
/>
70-
<View style={styles.flex1}>
71-
<BlockingView
72-
icon={icon}
73-
contentFitImage="fill"
74-
iconWidth={iconWidth}
75-
iconHeight={iconHeight}
76-
title={title}
77-
titleStyles={styles.mb2}
78-
CustomSubtitle={CustomSubtitle}
79-
containerStyle={[styles.ph5, padding]}
80-
testID={OutcomeScreenBase.displayName}
81-
/>
82-
</View>
83-
<View style={[styles.flexRow, styles.m5, styles.mt0]}>
84-
<Button
85-
large
86-
success
87-
style={styles.flex1}
88-
onPress={onClose}
89-
text={translate('common.buttonConfirm')}
90-
/>
71+
<View style={[styles.flex1, styles.gap2]}>
72+
<ScrollView contentContainerStyle={[styles.flexGrow1, styles.justifyContentCenter]}>
73+
<BlockingView
74+
icon={icon}
75+
contentFitImage="fill"
76+
iconWidth={iconWidth}
77+
iconHeight={iconHeight}
78+
title={title}
79+
titleStyles={styles.mb2}
80+
CustomSubtitle={CustomSubtitle}
81+
containerStyle={[styles.ph5, padding]}
82+
testID={OutcomeScreenBase.displayName}
83+
/>
84+
</ScrollView>
85+
<View style={[styles.flexRow, styles.m5, styles.mt0]}>
86+
<Button
87+
large
88+
success
89+
style={styles.flex1}
90+
onPress={onClose}
91+
text={translate('common.buttonConfirm')}
92+
/>
93+
</View>
9194
</View>
9295
</ScreenWrapper>
9396
);

0 commit comments

Comments
 (0)