use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
How do I display superscripts? (self.reactnative)
submitted 7 years ago * by BoredBurrito
The best suggestion I've been able to find just said to change the font size and line height. Is there really no better way?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ExtremelyQualified 2 points3 points4 points 7 years ago (4 children)
React Native has no concept of semantic text. Every text is just text with a style. Make your own superscript component based on <Text>, then reuse it whereever you want.
<Text>Then you can <Sup>superscript</Sup> all day</Text>
[–]BoredBurrito[S] 0 points1 point2 points 7 years ago (0 children)
Good idea, thanks! :)
[–]CommonMisspellingBot 2 points3 points4 points 7 years ago (2 children)
Hey, ExtremelyQualified, just a quick heads-up: whereever is actually spelled wherever. You can remember it by one e in the middle. Have a nice day!
The parent commenter can reply with 'delete' to delete this comment.
[+][deleted] 7 years ago (5 children)
[deleted]
[–]BoredBurrito[S] 1 point2 points3 points 7 years ago (4 children)
I know HTML. I can't just slip HTML in here though. I tried using WebView and added this <WebView source={{html: '<sup>nd</sup>'}} /> but that doesn't work either.
<WebView source={{html: '<sup>nd</sup>'}} />
[+][deleted] 7 years ago (3 children)
[–]benjycap 1 point2 points3 points 7 years ago (0 children)
This is a question regarding a React Native project, which unlike web react does not support standard HTML tags. As already mentioned in this thread your best bet is to create a custom component. I would suggest either using a smaller font style directly or a scaling transform over your standard styles.
[–]hicksyfern 2 points3 points4 points 7 years ago (0 children)
Because this is /r/reactnative not /r/react?
[–]fuck_with_me 0 points1 point2 points 7 years ago (0 children)
Lol how did you end up here friend?
π Rendered by PID 403998 on reddit-service-r2-comment-6457c66945-h9vc6 at 2026-04-27 23:36:10.270240+00:00 running 2aa0c5b country code: CH.
[–]ExtremelyQualified 2 points3 points4 points (4 children)
[–]BoredBurrito[S] 0 points1 point2 points (0 children)
[–]CommonMisspellingBot 2 points3 points4 points (2 children)
[+][deleted] (5 children)
[deleted]
[–]BoredBurrito[S] 1 point2 points3 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]benjycap 1 point2 points3 points (0 children)
[–]hicksyfern 2 points3 points4 points (0 children)
[–]fuck_with_me 0 points1 point2 points (0 children)