I am using flex in Text field to display my values/range. For IOS I am using the properties adjustsFontSizeToFit and minimumFontScale props for Text to achieve the ideal font size and scaling. I want the same scaling to be enabled for Android. Does anyone use any tricks for Android?
<View style={{flex: 40}}> { (Platform.OS === 'ios') ?<Text style={{flex: 1, paddingRight: 2}} adjustsFontSizeToFit minimumFontScale={0.5}> //if decimal value exists show range (pointFivePart_1 === '5') ? <Text style={{ flexDirection: 'row' }} ><Text style={styles.mainValueStyle}>{first_1}</Text><Text style=styles.decimalValueStyle}> .pointFivePart_1}</Text><Text style={styles.mainValueStyle}>°</Text></Text> : <Text style={styles.mainValueStyle} >{min}°</Text> } //if two values then show the second value as range{// render largest value if different than min (maxSet === minSet) ? null : ( (pointFivePart_2 === '5') ?<Text style={{ flexDirection: 'row' }} ><Text style={styles.mainValueStyle}> - {first_2}</Text><Text style={styles.decimalValueStyle}>.{pointFivePart_2}</Text><Text style={styles.mainValueStyle}>°</Text></Text> :<Text style={styles.mainValueStyle} > - {maxSet}°</Text> ) }</Text> : //same styling for android