ShaMan123 / react-native-math-view

Math view for react native! No WebView!
https://github.com/ShaMan123/react-native-math-view
MIT License
78 stars 24 forks source link

Inline mode vs not inline mode #27

Closed ggunti closed 4 years ago

ggunti commented 4 years ago

Hello! What I observed is that 'MathView' always render math in inline mode. Is it possible to render somehow the math also in non-inline mode?

Example (inside MathJax):

Captură de ecran din 2020-04-18 la 12 10 48

As you can see, in inline mode the n->infinity is passed to the right of lim, but I would like to keep it below lim, like in non-inline mode. Is it possible?

ShaMan123 commented 4 years ago

This should do the job


<MathView config={{inline:false}} />
ggunti commented 4 years ago

It works, thank you!

ShaMan123 commented 4 years ago

What do you pass as math prop? Does it include $$?

ggunti commented 4 years ago

No, it does not include $$, only the math expression string, without $$.

ShaMan123 commented 4 years ago

Thanks