Overview of the react-native-marked API surface
mainThe react-native-marked library provides several ways to render Markdown in React Native applications. The primary entry point is src/index.ts, which re-exports the following core components and hooks:
Markdown: The default component, which acts as aFlatListwrapper for efficient rendering.useMarkdown: A hook for managing Markdown state and parsing.useMarkdownWithComponents: A hook for rendering Markdown with custom React components.Renderer: A component used for custom rendering logic.ReactComponentRegistry&Provider: Used for managing and providing custom React components to the Markdown renderer.Markedutilities: Re-exportsMarkedHooks,MarkedTokenizer, andMarkedLexerfrom the underlyingmarkedlibrary.
The core processing flow is: marked.lexer → Parser.tsx → RendererInterface → Theming (styles.ts).