Last active
January 19, 2021 17:57
-
-
Save AllanGraves/4df8ea48ba7f6b0dc6db67e29ce930ee to your computer and use it in GitHub Desktop.
Embedding Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let textList = textToDisplayArray.map((item) => { | |
if (typeof item !== 'string') { | |
return item; | |
} else { | |
return <Text>{item}</Text>; | |
} | |
}); | |
return <Text>{textList}</Text>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment