I am trying to get superscript (and subscript) to work in my React Native app on both Android and iOS. I am aware of using workarounds for superscript with using a View
component as propsed on this SO question. But this doesn't work for me because you can not nest a View
component in a Text
component in Android.
In short, my code looks like this:
<Text>
<Text>e^x</Text>
...
<Text>
I want it to output ex.
I haven't found a solution for this problem anywhere, but I am sure it is possible as it is a pretty basic feature.
Any thoughts?