0

I have a RN app which communicates with my backend. In this app, there are some fields which have dynamic styling. It's formatted in a pretty standard format.

  • asterix bold text asterix
  • asterix asterix italic text

I want to use this string (which I get from the backend) to render an appropriately styled component. Example:

render("this *is bold*) = <Text> this <Text style={fontWeight: "bold"}> is bold </Text> </Text>

Any ideas on how to go about doing this?

halfer
  • 19,824
  • 17
  • 99
  • 186
Isonlaxman
  • 93
  • 8

0 Answers0