How to splice JSX like html in React Naitve? For advice?

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 :

in the outer layer of 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?


you can try
< div dangerouslySetInnerHTML = {{_ html: checkMessages.details}} / >


you can split the string into three parts ['daily login', '5pm' point points]

.
Menu