'render text or image depending on the content of a string
assuming I have a string that contains (text image text text image text). The order in which the string contains an image or text link varies. I want to render the text and the image in the order that the string contains each one and that every time I switch between one of the two the view drops a line. in the case of this string it would return something like this: View Text Image Text Text Image Text View
The image in the string is a link which will be the source and the text is the text of the tag.
I'm using react-string-replace but in this way I only can use a image tag inside a text tag. The view will be a scroll view. Anyone can help me?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
