React Native Latex
![Build Status](https://img.shields.io/npm/v/npm?style=plastic)
This module includes a component to render MathJax formulas in React Native App.
This is based on the local MathJax file instead of remote JS file.
Installation
$ npm install --save react-native-mathjax-local
The solution is implemented in JavaScript so no native module linking is required.
Usage
After install this package, MathJax directory will be created inside the directory / assets.
For Android, copy the MathJax directory to android/app/src/main/assets
.
For iOS, add the MathJax directory in Resources
in XCode Workspace.
import MathJax from 'react-native-mathjax-local';
<MathJax style={{
width: '100%',
height: 100
}}>
{"\\frac{1}{2\\pi}\\int_{-\\infty}^{\\infty}e^{-\\frac{x^2}{2}}dx"}
</MathJax>