import { View } from 'react-native';
import MathJaxSvg from 'react-native-mathjax-svg';
const App = () => {
return (
);
};
export default App;
< /code>
(NOBRIDGE) LOG MathJaxSvg [Function MathJax]
It seems like the component is not bridging properly.
< /code>
2⃣ с использованием react-cnative-math-view
jsx < /p>
import React from 'react';
import { View, Text } from 'react-native';
import MathView from 'react-native-math-view';
const App = () => {
return (
Testing MathJax:
);
};
< /code>
export app app;
Warning: React.jsx: type is invalid -- expected a string or function but got: undefined.
< /code>
3⃣ Что работает (но не идеально)
Использование реагируемого webview с MathJax: < /p>
import React from 'react';
import { View, Text } from 'react-native';
import { WebView } from 'react-native-webview';
const mathJaxHTML = `
Testing MathJax
\\( E = mc^2 \\)
`;
const App = () => {
return (
Testing MathJax in WebView:
);
};
< /code>
export по умолчанию приложение по умолчанию;
среда: < /p>
React Native Version: 0.73.3
react-native-mathjax-svg: 0.9.9
react-native-math-view: 3.9.5
Platform: Android & iOS
JavaScript Runtime: Hermes enabled
< /code>
Любые идеи или исправления будут высоко оценены!
Подробнее здесь: https://stackoverflow.com/questions/795 ... view-react
Мобильная версия