Observed since 20 Oct, 22:41 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Streaming-ready Markdown for React Native, with GFM support (fork of react-native-streamdown)
Fork of
react-native-streamdownwith GitHub Flavored Markdown (GFM) support — tables, task lists, strikethrough, autolinks — via theflavorprop.This project is not affiliated with, endorsed by, or sponsored by Vercel.
A streaming-ready markdown component for React Native built on top of react-native-enriched-markdown and remend.
It processes raw, incomplete markdown (as it streams token-by-token from an LLM) in the background using react-native-worklets powerful concurrency feature - the Bundle Mode - keeping the JS thread free at all times.
react-native-worklets Bundle Mode$...$) with streaming completion — applied automatically, no configuration needed (we've also opened a PR to add this directly to remend)react-native-enriched-markdown with built-in streamingAnimationflavor="github"remendConfigyarn add @0xbanky/react-native-streamdown
yarn add react-native-enriched-markdown react-native-worklets remend
| Package | Version |
|---|---|
react-native-enriched-markdown | 0.4.0 |
react-native-worklets | 0.8.0-rc.0 |
remend | 1.2.2 |
react-native-streamdown runs markdown processing on a worklet thread using Bundle Mode from react-native-worklets. This requires extra configuration steps from the official Bundle Mode setup guide. Make sure to complete these steps before continuing. For a real-world reference of an app configured with Bundle Mode, check out the Bundle Mode Showcase App.
babel.config.js — configure Worklets Babel pluginreact-native-streamdown requires special options to be added to the Worklets Babel plugin config in babel.config.js, namely bundleMode: true and workletizableModules: ['remend']. Your final config could look like this:
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'react-native-worklets/plugin',
{
bundleMode: true,
// other options...
workletizableModules: ['remend'], // add this line
},
],
],
};
};
const workletsPluginOptions = {
bundleMode: true,
// other options...
workletizableModules: ['remend'], // add this line
};
workletizableModules: ['remend'] tells the Babel plugin to pre-bundle remend for the worklet runtime so it can be called off the JS thread.
metro.config.js — configure Metro for monoreposreact-native-worklets Bundle Mode generates files on the fly that might not be tracked by Metro in some monorepo setups. It might also shadow your resolving function. If you're running into issues with module resolution, you need to add the following to your metro.config.js:
const { getDefaultConfig } = require('expo/metro-config');
const {
getBundleModeMetroConfig,
} = require('react-native-worklets/bundleMode');
let config = getDefaultConfig(__dirname);
// Watch the .worklets/ output directory
config.watchFolders.push(
require('path').resolve(
__dirname,
'node_modules/react-native-worklets/.worklets'
)
);
// Resolve react-native-worklets/.worklets/* via the Bundle Mode resolver
const defaultResolver = config.resolver.resolveRequest;
config = getBundleModeMetroConfig(config);
config.resolver.resolveRequest = (context, moduleName, platform) => {
if (moduleName.startsWith('react-native-worklets/.worklets/')) {
return bundleModeMetroConfig.resolver.resolveRequest(
context,
moduleName,
platform
);
}
return defaultResolver(context, moduleName, platform);
};
module.exports = config;
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
const { bundleModeMetroConfig } = require('react-native-worklets/bundleMode');
let config = getDefaultConfig(__dirname);
// Watch the .worklets/ output directory
config.watchFolders.push(
require('path').resolve(
__dirname,
'node_modules/react-native-worklets/.worklets'
)
);
// Resolve react-native-worklets/.worklets/* via the Bundle Mode resolver
const defaultResolver = config.resolver.resolveRequest;
config = mergeConfig(config, bundleModeMetroConfig);
config.resolver.resolveRequest = (context, moduleName, platform) => {
if (moduleName.startsWith('react-native-worklets/.worklets/')) {
return bundleModeMetroConfig.resolver.resolveRequest(
context,
moduleName,
platform
);
}
return defaultResolver(context, moduleName, platform);
};
module.exports = config;
import { StreamdownText } from '@0xbanky/react-native-streamdown';
// markdown can be updated token-by-token as the LLM streams
<StreamdownText markdown={partialMarkdown} />;
StreamdownText accepts all props from EnrichedMarkdownText plus one additional prop:
| Prop | Type | Description |
|---|---|---|
flavor | 'commonmark' | 'github' | Optional. Defaults to 'commonmark'. Set to 'github' to render GitHub Flavored Markdown — tables, task lists, strikethrough, autolinks. |
remendConfig | RemendOptions | Optional. Override the default remend processing config. See remend docs for all available options. |
<StreamdownText markdown={partialMarkdown} flavor="github" />
Note: streamingAnimation (tail-fade) is recommended only with flavor="commonmark"; it's disabled automatically under 'github' because that flavor uses a container-based renderer. You can still force it on by passing streamingAnimation explicitly.
The example/ directory in this repository contains a fully working demo app that shows:
streamingAnimation effectStreamdownTextIt is a practical reference for the full Bundle Mode setup (Babel, Metro, package.json flags) and for how to wire StreamdownText into a real streaming UI.
This fork adds GFM rendering by exposing the upstream library's flavor prop. Tables, task lists, strikethrough, and autolinks render natively when flavor="github". streamingAnimation is scoped to commonmark because the GFM renderer is container-based.
Built by Software Mansion.
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0Registry latest | 24 Apr 2026 | 27 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 22:41 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:143386bf45b3fcef037f24f338932dfd7528d989537b47af6432d5dd3220e405