I have text within a view container like this
<View
style={{
flex: 1,
alignItems: 'center',
justifyContent: 'center',
borderColor: 'grey'
}}
>
<Text>Long Text Here</Text>
</View>
My result is something like this
If I add <Text numberOfLines={4}>
, this works fine but I want my text to fully fit in view and if it going out of bound then it will show three dots. I am not sure how many lines would be enough as it will differ in different screen sizes.