Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/215.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/96.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android ';react-native-mathjax';不渲染单个反斜杠_Android_Ios_React Native_Mathjax - Fatal编程技术网

Android ';react-native-mathjax';不渲染单个反斜杠

Android ';react-native-mathjax';不渲染单个反斜杠,android,ios,react-native,mathjax,Android,Ios,React Native,Mathjax,我正在使用“react native mathjax”渲染数学方程react native mathjax“无法为单个反斜杠渲染”。当我在下面给出的等式中添加双反斜杠代替单反斜杠,添加四个反斜杠代替双反斜杠时,“react native mathjax”呈现等式,有解决方案吗 import React from 'react'; import { View, Text } from 'react-native'; import MathJax from 'react-na

我正在使用“react native mathjax”渲染数学方程react native mathjax“无法为单个反斜杠渲染”。当我在下面给出的等式中添加双反斜杠代替单反斜杠,添加四个反斜杠代替双反斜杠时,“react native mathjax”呈现等式,有解决方案吗

    import React from 'react';
    import { View, Text } from 'react-native';
    import MathJax from 'react-native-mathjax';

    function Test() {
            return (
                   <View>
                     <MathJax
                        html={<p><span class="math-tex">\(\begin{bmatrix} 2 &1 \\[0.3em] 3&4\\[0.3em] \end{bmatrix}\)</span></p>} // not rendering this eqation  
                  />
                   </View>
     );
    }
    export default Test;
从“React”导入React;
从“react native”导入{View,Text};
从“react native MathJax”导入MathJax;
功能测试(){
返回(
);
}
导出默认测试;

如果您检查文档,这是为了在Webview中使用,以呈现html。因此,您没有体验到正确的行为。问题是它是在html中生成的,而您只能在react native的webview中使用html。所以你需要用yes。您正在webview中生成它吗?在使用view.r提供的代码中,对不起,我刚才看到了。因为\是一个特殊的转义字符,我怀疑你不能使用单斜杠转换为“\”,这适用于许多系统。这里的解释很好->