Skip to content

Commit 3956704

Browse files
authored
fix(AmountDisplay): adjust text styling for Android compatibility (#535)
* fix(AmountDisplay): adjust text styling for Android compatibility * nx release plan
1 parent aa7065d commit 3956704

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ledgerhq/lumen-ui-rnative': patch
3+
---
4+
5+
hotfix(AmountDisplay): fix digits alignment

libs/ui-rnative/src/lib/Components/AmountDisplay/AmountDisplay.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Animated, {
1010
import { useCommonTranslation } from '../../../i18n';
1111
import { useStyleSheet } from '../../../styles';
1212
import { Pulse } from '../../Animations/Pulse';
13+
import { RuntimeConstants } from '../../utils';
1314
import { Box } from '../Utility';
1415
import {
1516
AmountDisplayProps,
@@ -123,7 +124,13 @@ const DigitStrip = memo(
123124
>
124125
<Animated.View style={[animatedStyle, { alignItems: 'center' }]}>
125126
{DIGITS.map((d) => (
126-
<Text key={d} style={textStyle}>
127+
<Text
128+
key={d}
129+
style={[
130+
textStyle,
131+
RuntimeConstants.isAndroid && { height: lineHeight },
132+
]}
133+
>
127134
{d}
128135
</Text>
129136
))}

0 commit comments

Comments
 (0)