react-mathjax icon indicating copy to clipboard operation
react-mathjax copied to clipboard

react native support

Open karan101292 opened this issue 7 years ago • 8 comments

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

karan101292 avatar May 11 '17 10:05 karan101292

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 ;)

pyramation avatar May 13 '17 13:05 pyramation

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

khunghang16 avatar Aug 06 '17 07:08 khunghang16

@khunghang16 any luck with solving this error ?

scizers avatar Sep 07 '17 05:09 scizers

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

dongbach69 avatar Oct 11 '17 19:10 dongbach69

plzzz.. help me.. ad...

dongbach69 avatar Oct 12 '17 13:10 dongbach69

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

ritesh-malav avatar Jan 19 '18 06:01 ritesh-malav

@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 avatar Sep 14 '18 20:09 ShaMan123

anyone managed to get this working?

ShaMan123 avatar Sep 14 '18 20:09 ShaMan123

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.

vladp avatar Nov 30 '18 04:11 vladp

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.

pkra avatar Nov 30 '18 08:11 pkra