• English
  • Configuration

    Basic usage follows React. The table links to the full reference for each prop; platform-specific style usage is covered below.

    PropTypeDefault and purpose
    textstringRequired. The complete current Markdown.
    streamingboolean | StreamingConfigfalse. Ending repair, smoothing, and effects.
    buildBaseBuildConfig{}. Parsing features such as math and footnotes.
    themeTheme'light'. A preset or partial overrides; see the styling guide.
    pluginsIPluginItem | IPluginItem[][]. Extends this platform’s preset; required for Raw.
    patchesIPatchItem<ReactNode>[][]. Inserts or replaces text with native components.
    styleStyleProp<ViewStyle>undefined. Styles for the outer View, including arrays.
    refRef<FluxdownRef>undefined. A handle to reactive render output, not a native view reference.
    Imports

    Import BaseBuildConfig, StreamingConfig, and FluxdownRef from @fluxdown/react-native, Theme from @fluxdown/react-native-plugins/typings, and IPluginItem from @fluxdown/react-base-plugins/typings.

    style Optional

    Type: StyleProp<ViewStyle>

    Default: undefined

    React Native styles on the outer View. Accepts an object, a StyleSheet.create result, or a style array. There is no className prop; use style for container layout:

    <Fluxdown style={{ padding: 16, maxWidth: 720 }} text={text} />

    See the styling guide for colors and typography within the content, and slot plugins to change components or interactions.