UNPKG

react-native-turboxml

Version:

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

9 lines (6 loc) 275 B
import type { TurboModule } from 'react-native'; import { TurboModuleRegistry } from 'react-native'; export interface Spec extends TurboModule { parseXml(xml: string): Promise<Record<string, unknown>>; } export default TurboModuleRegistry.getEnforcing<Spec>('Turboxml');