How can I precisely detect all OnePlus devices?

Viewed 165

The text of my mobile application was cut off on OnePlus devices, and my app does use custom font until now.
I searched for some information and learned that change the font of my app might be helpful.

Thanks to Expo they have some methods that could get the exact devices information, I want to use the default font only for OnePlus devices.

But I don't how can I precisely detect OnePlus devices.
Or should I say if I use the detect methods of Expo on OnePlus devices, I don't know what will be returned.

And also, purchasing OnePlus mobile phones is too expensive for me...

1 Answers

Instead of getting device info you can just make allowFontScaling as false in Text tag.

<Text allowFontScaling={false}>Your text goes here</Text>

This will avoid text cut.

Related