最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - React Native: LaTeX Not Rendering Properly Using react-native-math-viewreact-native-mathjax-svg - Stack Overflow

programmeradmin3浏览0评论

I'm trying to display LaTeX math equations in my React Native application. Initially, I tried using react-native-mathjax-svg and react-native-math-view, but none of them seem to render the math properly.

What I Tried: 1️⃣ Using react-native-mathjax-svg

import React from 'react';
import { View } from 'react-native';
import MathJaxSvg from 'react-native-mathjax-svg';

const App = () => {
  return (
    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <MathJaxSvg math={"\\(x^2 + y^2 = z^2\\)"} fontSize={20} color="black" />
    </View>
  );
};

export default App;

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论