sticking text-justify to auto for android

This commit is contained in:
noumantahir 2022-01-27 13:32:40 +05:00
parent d63e67da5e
commit c48deced34

View File

@ -1,4 +1,4 @@
import { ImageStyle } from 'react-native';
import { ImageStyle, Platform } from 'react-native';
import { ViewStyle, TextStyle } from 'react-native';
import EStyleSheet from 'react-native-extended-stylesheet';
@ -82,7 +82,7 @@ export default EStyleSheet.create({
flexWrap:'wrap'
} as TextStyle,
textJustify:{
textAlign:'justify',
textAlign: Platform.select({ios:'justify', android:'auto'}), //justify with selectable on android causes ends of text getting clipped,
letterSpacing:0
} as TextStyle,
revealButton: {