New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-turboxml

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-turboxml

A high-performance native XML parser for React Native built with Kotlin and Objective-C using TurboModules and the New Architecture.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

TurboXML – React Native XML Parser Logo

TurboXML – Fast Native XML Parser for React Native

npm version npm downloads license

A high-performance native XML parser for React Native using TurboModules and the New Architecture.
4× faster than JavaScript-based parsers like react-native-xml2js.

Android iOS

Benchmark

TurboXML vs fast-xml-parser benchmark

TurboXML (left) keeps the UI smooth while fast-xml-parser (right) freezes the entire app.

Features

  • Native performance – Parses XML natively on both platforms (Kotlin on Android, Objective-C on iOS)
  • TurboModules + JSI – Built for React Native's New Architecture
  • Async & non-blocking – Parsing runs on background threads
  • Fully typed – TypeScript definitions included
  • Simple API – Single function, returns a Promise

Installation

npm install react-native-turboxml
# or
yarn add react-native-turboxml

iOS

cd ios && pod install

Requirements

  • React Native 0.71+
  • New Architecture enabled
  • Android 5.0+ / iOS 13.0+

Usage

import { parseXml } from 'react-native-turboxml';

const xml = `
  <config>
    <title>TurboXML</title>
    <enabled>true</enabled>
    <version>1.0</version>
  </config>
`;

const result = await parseXml(xml);
console.log(result);

Output

{
  "config": {
    "title": "TurboXML",
    "enabled": "true",
    "version": "1.0"
  }
}

API

function parseXml(xml: string): Promise<Record<string, unknown>>;
ParameterTypeDescription
xmlstringThe XML string to parse

Returns: A Promise that resolves to a JavaScript object representing the parsed XML.

Why TurboXML?

JavaScript-based XML parsers run on the JS thread and can block your UI during large file parsing. TurboXML uses native code on both platforms:

  • Android: Jackson XmlMapper with Kotlin coroutines
  • iOS: NSXMLParser with GCD

This means parsing happens on background threads and communicates directly via JSI – no bridge serialization overhead.

Use cases

  • Offline maps and geospatial data (KML, GPX)
  • Configuration files
  • API responses in XML format
  • Data import/export

Comparison

ParserNativeNew ArchitectureAsync
react-native-turboxmlYesYes (TurboModules)Yes
react-native-xml2jsNoNoYes
fast-xml-parserNoNoNo

Contributing

Contributions are welcome! Feel free to open issues or submit PRs.

License

MIT

Keywords

react-native

FAQs

Package last updated on 03 Dec 2025

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