Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 9ed8c75

Browse files
committed
Use react native adjustFontSizeToFit on home screen balance
1 parent c8cd522 commit 9ed8c75

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/component/label.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const balanceStyles = StyleSheet.create({
1515
numeral: {
1616
fontFamily: 'WorkSans ExtraLight',
1717
fontSize: font.sizeXXXL,
18-
lineHeight: font.lineHeightXXXL,
18+
lineHeight: null,
1919
},
2020
unit: {
2121
fontFamily: 'WorkSans Regular',
@@ -35,7 +35,13 @@ BalanceLabel.propTypes = {
3535
};
3636

3737
export const BalanceLabelNumeral = ({ children, style }) => (
38-
<Text style={[balanceStyles.numeral, style]}>{children}</Text>
38+
<Text
39+
style={[balanceStyles.numeral, style]}
40+
adjustsFontSizeToFit={true}
41+
numberOfLines={1}
42+
>
43+
{children}
44+
</Text>
3945
);
4046

4147
BalanceLabelNumeral.propTypes = {

0 commit comments

Comments
 (0)