Unfortunately, there is still no easy way to do this, even after introducing the nested View inside the Text . Surprisingly, in the iOS community, this seems nontrivial.
iphone - How to implement the "float" effect for an image, as in the CSS style https://github.com/Cocoanetics/DTCoreText/issues/438
One idea that would have come to my mind to work hard is to measure the text, size and / or character, and depending on the size of the image, divide the text into two Text components, one of which goes right / left, and the other below the image .
There is this vulnerable React Native library that can help, which allows you to measure the width and height of a Text component based on its contents:
https://github.com/alinz/react-native-swiss-knife/blob/master/lib/text/index.ios.js
rclai
source share