SamyPesse / react-mathjax

React component to display math formulas
Apache License 2.0
95 stars 35 forks source link

react native support #3

Open karan101292 opened 7 years ago

karan101292 commented 7 years ago

I want to display latex/mathml equations in my react native app. does this component work with react native?

pyramation commented 7 years ago

it's just javascript, which is how react native works. so definitely 100% yes. There's nothing this library needs to add in order to support react native. Just npm install it and it should work ;)

khunghang16 commented 7 years ago

In react native, i have a problem . How to fix it? 20662824_1216023878504395_1947895254_o

scizers commented 7 years ago

@khunghang16 any luck with solving this error ?

dongbach69 commented 6 years ago

????? same me... can you help me....

dongbach69 commented 6 years ago

plzzz.. help me.. ad...

ritesh-malav commented 6 years ago

Have you found solution for this issue. I also have same usecase.

ShaMan123 commented 6 years ago

@pyramation I think you are wrong. In ./src/node.js there is use of document, span and div which are not a part of ReactNative

ShaMan123 commented 6 years ago

anyone managed to get this working?

vladp commented 5 years ago

I do not think it is possible to get this component to work on react native.

Please vote at https://react-native.canny.io/feature-requests/p/latex-or-mathml-rendering-in-reactnative

to add the support for mathml to react-native, here.

pkra commented 5 years ago

Just a random comment from the MathJax end: this library uses MathJax v2 which requires a DOM so you'll need a webview to work in react native.

MathJax v3 however has no DOM dependencies anymore and instead a modular system for different "adpators". Of course, if you want CSS based layout, you'll still need a webview to render that but MathJax can generate SVG as well.

So it seems to me you could combine such MathJax v3 SVG output either with other react-native SVG tooling (such as react-native-svg) or you could write a MathJax v3 adpator for react-native.