Skip to main content

Module rn_spec

Module rn_spec 

Source
Expand description

Recursive-descent parser for React Native Fabric *NativeComponent.{ts,js} and TurboModule Native*.{ts,js} specifications (both TypeScript and Flow syntax).

Modules§

lexer
Lightweight zero-dependency lexer for TypeScript and Flow React Native specs.

Functions§

parse_rn_spec
Parses a React Native Fabric component or TurboModule specification from source text.
parse_rn_spec_file
Parses a React Native spec file from disk.