Math is easy on the web, where libraries such as KaTeX and MathJax have typeset formulas for years. React Native has no browser engine in its standard text components, so a formula written as LaTeX shows up as raw code unless the team adds a renderer. For exam preparation, tutoring and STEM apps, that gap affects nearly every screen.
For most EdTech apps, the best approach renders formulas from one LaTeX source with a proven web library, through a web view or as SVG, caches the result and gives editors a formula editor with live preview, so content and app always show the same notation.
This article compares the main rendering approaches, covers authoring, content conversion, performance and accessibility and shows how a Nigerian exam-prep startup shipped LaTeX support in a four-week MVP. It does not cover handwriting recognition or computer algebra.
Key takeaways
- React Native cannot display LaTeX on its own. Teams choose between web views, SVG rendering, server-side images and native modules.
- Web views with KaTeX or MathJax are quick to build but can be slow in long lists. SVG and pre-rendered output scale better.
- Keep LaTeX as the single source of truth in the content database, and render it the same way in the admin panel and the app.
- Give editors a formula editor with live preview. Most rendering bugs start as authoring mistakes.
- Cache rendered formulas and render only what is on screen.
- PrepClass shipped a custom LaTeX module for React Native and a formula plugin for its admin panel in a four-week MVP, and reached 15,000 active users within two weeks of launch.
Why math is hard in mobile apps
- No built-in renderer. React Native's text components display plain and styled text and have no support for typeset math.
- Inline and block formulas. A formula in the middle of a sentence must align with the text around it, and a long equation must wrap or scroll.
- Many formulas per screen. A practice test can show dozens of formulas in questions and answers at once.
- Inconsistent source content. Past papers and worksheets arrive as scans, Word files and PDFs with formulas in different notations.
- Weak devices and networks. Many learners use low-cost Android phones on slow or metered connections, so heavy rendering and large downloads hurt.
Four ways to render LaTeX in React Native
| Approach | How it works | Strengths | Limits |
|---|---|---|---|
| Web view with a math library | Formulas are rendered by KaTeX or MathJax inside an embedded web view | Full LaTeX support, quick to build, same output as the web | Memory and startup cost, slow in long lists, sizing web views to content takes work |
| SVG rendering | A math library converts LaTeX to SVG, which the app draws with a native SVG component | Native performance, crisp at any size, works offline once cached | Setup effort, some features need extra handling |
| Server-side images or SVG | The backend renders each formula once and the app downloads the result | Lightest work on the device, consistent output | Needs a network or a download step, updates require re-rendering |
| Custom native module | The team builds or adapts its own renderer for the app's needs | Full control over layout, styling and performance | Highest effort, ongoing maintenance |
KaTeX focuses on speed and can pre-render expressions with Node.js on a server, producing the same output in any environment. MathJax accepts LaTeX, MathML and AsciiMath, outputs HTML, SVG or MathML and includes accessibility extensions for screen readers and speech. Both are used in production apps through web views, SVG output or server rendering.

How to choose
- How many formulas appear on one screen? A few per screen suits web views. Dozens in a scrolling list call for SVG or pre-rendered output.
- Must the app work offline? If yes, render on the device or download rendered formulas with the lesson.
- How often does content change? Frequently edited content favors rendering on the device. Stable question banks suit server rendering.
- Which notation do you need? Chemistry, matrices and alignment environments need wider library support than basic algebra.
- What devices do learners use? Low-end Android phones favor lighter output and fewer web views.
The authoring side
Rendering problems usually begin in the content. Editors who type LaTeX by hand miss braces, use unsupported commands or paste formulas as images.
- Formula editor with live preview. A WYSIWYG plugin in the admin panel lets editors build formulas visually or type LaTeX and see the result immediately.
- Same renderer everywhere. The preview in the admin panel should use the same library and settings as the app.
- Validation on save. Reject formulas that fail to render, so broken notation never reaches learners.
- Reusable snippets. Common expressions and templates speed up question entry.
Building a learning app with formulas, tests and payments? We help startups ship mobile MVPs fast and scale them after launch.
Explore IT outsourcingConverting existing content
Exam-prep content often comes from years of past papers in mixed formats. A conversion pipeline saves months of retyping:
- Text documents. Extract formulas from Word and similar formats, where equations are often stored in structured form that converts to LaTeX.
- PDFs and scans. Use OCR tools that recognize math and output LaTeX, then send every converted question to an editor for review.
- Review queue. Show the original next to the rendered result, so editors can approve or fix each item quickly.
- Consistent conventions. Agree on notation rules, such as how to write units or vectors, before conversion starts.
Performance tips
- Render only what is visible. Use virtualized lists so formulas outside the screen are not rendered.
- Cache rendered output. Store SVG or images by formula, so repeated expressions and revisited screens render instantly.
- Pre-render where possible. Render question banks on the server when content is published, and ship results with the lesson download.
- Measure sizes once. Calculate and store each formula's dimensions, so lists do not jump while rendering.
- Limit web views. If you use web views, render a whole question in one view, so each screen needs only a few views.
Accessibility
Learners who use screen readers need formulas read aloud in a meaningful way. Raw LaTeX such as "backslash frac" is unusable. Provide a spoken text equivalent for each formula, generated by tools such as MathJax's accessibility extensions or written by editors, and attach it as the accessibility label of the rendered formula. Make sure formulas scale with the system text size.
A real case: LaTeX support in a four-week MVP
PrepClass connects Nigerian students with tutors for exam preparation. Practice relies on past papers in inconsistent formats, tutors needed to see student progress and local mobile payments were mandatory. The startup needed a mobile app and an admin panel within four weeks on a limited budget, and there was no ready LaTeX renderer for React Native that met its needs.
A .wrk team of backend, frontend and mobile developers and a project manager:
- Scoped the MVP with the founders in feature-lock workshops.
- Built a custom LaTeX formula module for React Native and a WYSIWYG formula plugin for the admin panel.
- Built the mobile app, admin panel and API in parallel with React Native, React and Laravel, and delivered a working app and admin within three weeks of sign-off.
- Shipped an SDK for MTN Mobile Money payments after investigating the operator's API with its support team.
- Added courses, analytics and Q&A in the second phase.
The app reached 15,000 active users and a 4.8 rating within two weeks of launch, and the founders secured funding for the next phase. Read the PrepClass case study. The payment side of the project is covered in our article on mobile money API integration.

Common mistakes
- One web view per formula. Memory use climbs and scrolling stutters.
- Different renderers in admin and app. Editors approve formulas that look different on phones.
- Formulas stored as images. They cannot be edited, searched, resized or read aloud.
- No validation on save. Broken LaTeX reaches learners as raw code.
- Ignoring low-end devices. Testing only on flagship phones hides performance problems.
- No spoken equivalent. Screen reader users lose access to the core content.
Frequently asked questions
How do you render LaTeX in React Native?
React Native has no built-in math renderer, so apps use a web view with KaTeX or MathJax, convert LaTeX to SVG and draw it natively, download formulas pre-rendered on a server or build a custom native module.
Is KaTeX or MathJax better for mobile apps?
KaTeX is generally faster and lighter, which suits screens with many formulas. MathJax supports more input formats and has stronger accessibility features. Both can render on a server or produce SVG for native display.
How do you show math formulas offline in a mobile app?
Render formulas on the device with a bundled library, or download pre-rendered SVG or images together with each lesson and cache them, so formulas display without a connection.
How do you make math accessible in a mobile app?
Provide a spoken text equivalent for every formula and attach it as the accessibility label, support system text scaling and test with screen readers on both platforms.
How long does it take to add math rendering to an app?
A basic web view integration takes days. A performant renderer with caching, an admin formula editor and content conversion usually takes several weeks, depending on the notation needed and the volume of existing content.
To sum up
Math in a React Native app needs a deliberate rendering choice: web views for speed of delivery, SVG or server rendering for long lists and offline use, or a custom module for full control. Keep LaTeX as the single source, use the same renderer in the admin panel and the app, validate formulas on save, cache and pre-render, and give every formula a spoken equivalent.
.wrk builds mobile apps and MVPs for EdTech and other startups, including custom components that off-the-shelf libraries do not cover.
Need a learning app with formulas, tests and local payments? Share your content and timeline, and we will propose an MVP scope and team.
Explore IT outsourcing