2.1.2 • Published 4 years ago

react-native-mathjax v2.1.2

Weekly downloads
81
License
MIT
Repository
github
Last release
4 years ago

react-native-mathjax

Render Mathjax content in React Native Webview with auto height adjustment.

Showcase

TODO

Installation

  1. yarn add react-native-mathjax or npm install react-native-mathjax --save

Usage

<MathJax
  // HTML content with MathJax support
  html={'$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$<br><p>This is an equation</p>'}
  // MathJax config option
  mathJaxOptions={{
    messageStyle: 'none',
    extensions: [ 'tex2jax.js' ],
    jax: [ 'input/TeX', 'output/HTML-CSS' ],
    tex2jax: {
      inlineMath: [ ['$','$'], ['\\(','\\)'] ],
      displayMath: [ ['$$','$$'], ['\\[','\\]'] ],
      processEscapes: true,
    },
    TeX: {
      extensions: ['AMSmath.js','AMSsymbols.js','noErrors.js','noUndefined.js']
    }
  }}
  {...WebView props}
/>
2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago