I'm trying to put a text into a limited space (yellow container). How to solve this problem in Android?
In iOS the problem is solved with adjustsFontSizeToFit={true}.
My code:
<View
style={{
backgroundColor: 'yellow',
flex: 0.8,
marginRight: 10,
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center'
}}
>
<CustomText style={{ fontWeight: '400' }}>{`Qt. ${orderProduct.quantity}`}</CustomText>
<PriceText
style={{
fontWeight: '600',
fontSize: 18,
color: '#000'
}}
price={price}
/>
</View>