question:
example: a string from the background is as follows:
5
now I want to form such a jsx, based on this string in order to highlight the number 5
, so wrap a Text
:
5
.
<Text><Text>5</Text></Text>
is easy to implement in html, just through string concatenation, and then innerHTML
directly render , and reactJs
there is also a solution on the web side, but I can"t seem to find a feasible method in ReactNative
. Is there any God who can give me some ideas? Thank you?