2.3.1 • Published 5 years ago
react-native-mathjax-local v2.3.1
React Native Latex
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 iOS
- Open Xcode workspace
- Drag and drop node_modules/react-native-mathjax-local/MathJax to
Project name
directory in Xcode - When a dialog shows up, make sure to check
Copy items if needed
andCreate folder references
- Press Finish
- Build & Run
For Android
- Copy node_modules/react-native-mathjax-local/MathJax to
android/app/src/main/assets
- Build & Run
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>
1.9.1
5 years ago
1.8.1
5 years ago
1.8.0
5 years ago
2.3.0
5 years ago
2.2.0
5 years ago
2.3.1
5 years ago
1.7.4
5 years ago
2.1.0
5 years ago
2.0.1
5 years ago
1.7.3
5 years ago
1.7.2
5 years ago
1.7.1
5 years ago
1.6.1
5 years ago
1.5.1
5 years ago
1.4.1
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.0
5 years ago