Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-mathjax-local

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-mathjax-local

React Native - Component to render MathJax formulas in React Native App

  • 1.8.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Latex

Build Status

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

  1. Open Xcode workspace
  2. Drag and drop node_modules/react-native-mathjax-local/MathJax to Project name directory in Xcode
  3. When a dialog shows up, make sure to check Copy items if needed and Create folder references
  4. Press Finish
  5. Build & Run

For Android

  1. Copy node_modules/react-native-mathjax-local/MathJax to android/app/src/main/assets
  2. 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>

Keywords

FAQs

Package last updated on 31 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc