Superscript Text in React Native

后端 未结 5 438
孤独总比滥情好
孤独总比滥情好 2020-12-06 02:56

I would like to style text as superscript in React Native. How would this be accomplished? Is there a way to make use of the Javascript sup() string method to r

5条回答
  •  囚心锁ツ
    2020-12-06 03:28

    The best method I found for this problem is not ideal, but it works cross-platform. The character I needed to superscript is the ® which some fonts have superscripted by default. So, I simply included a similar font family with the superscripted ® and it worked like magic.

提交回复
热议问题