Rich Text
software-mansion-labs/skills
Software Mansion's best practices for rich text in React Native using react-native-enriched-html (formerly react-native-enriched) and react-native-enriched-markdown.
Software Mansion's best practices for rich text in React Native using react-native-enriched and react-native-enriched-markdown.
$ npx skills add kingstinct/react-native-healthkit --skill rich-text -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kingstinct/react-native-healthkit rich-text --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/kingstinct/react-native-healthkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/react-native-best-practices/references/rich-text .claude/skills/rich-text && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "rich-text" agent skill from https://github.com/kingstinct/react-native-healthkit/tree/master/.agents/skills/react-native-best-practices/references/rich-text into .claude/skills/rich-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rich-text", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/kingstinct/react-native-healthkit/tree/master/.agents/skills/react-native-best-practices/references/rich-textType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add kingstinct/react-native-healthkit --skill rich-text -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kingstinct/react-native-healthkit rich-text --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kingstinct/react-native-healthkit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/react-native-best-practices/references/rich-text .agents/skills/rich-text && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "rich-text" agent skill from https://github.com/kingstinct/react-native-healthkit/tree/master/.agents/skills/react-native-best-practices/references/rich-text into .agents/skills/rich-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rich-text", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kingstinct/react-native-healthkit --skill rich-text -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kingstinct/react-native-healthkit rich-text --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kingstinct/react-native-healthkit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/react-native-best-practices/references/rich-text .cursor/skills/rich-text && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "rich-text" agent skill from https://github.com/kingstinct/react-native-healthkit/tree/master/.agents/skills/react-native-best-practices/references/rich-text into .cursor/skills/rich-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rich-text", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/kingstinct/react-native-healthkit.git --path .agents/skills/react-native-best-practices/references/rich-text--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add kingstinct/react-native-healthkit --skill rich-text -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kingstinct/react-native-healthkit rich-text --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kingstinct/react-native-healthkit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/react-native-best-practices/references/rich-text .gemini/skills/rich-text && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "rich-text" agent skill from https://github.com/kingstinct/react-native-healthkit/tree/master/.agents/skills/react-native-best-practices/references/rich-text into .gemini/skills/rich-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rich-text", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install kingstinct/react-native-healthkit rich-textInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add kingstinct/react-native-healthkit --skill rich-text -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/kingstinct/react-native-healthkit.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/react-native-best-practices/references/rich-text .github/skills/rich-text && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "rich-text" agent skill from https://github.com/kingstinct/react-native-healthkit/tree/master/.agents/skills/react-native-best-practices/references/rich-text into .github/skills/rich-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rich-text", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kingstinct/react-native-healthkit --skill rich-text -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install kingstinct/react-native-healthkit rich-text --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kingstinct/react-native-healthkit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/react-native-best-practices/references/rich-text .opencode/skills/rich-text && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "rich-text" agent skill from https://github.com/kingstinct/react-native-healthkit/tree/master/.agents/skills/react-native-best-practices/references/rich-text into .opencode/skills/rich-text/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rich-text", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
rich-textSoftware Mansion's best practices for rich text in React Native using react-native-enriched and react-native-enriched-markdown.
Rich Text is an agent skill from kingstinct/react-native-healthkit. Software Mansion's best practices for rich text in React Native using react-native-enriched and react-native-enriched-markdown. Use when building rich text editors, formatted text inputs, Markdown renderers, or any feature requiring inline styling, mentions, links, structured text editing, or Markdown display. Trigger on: 'rich text editor', 'rich text input', 'text editor', 'react-native-enriched', 'react-native-enriched-markdown', 'EnrichedTextInput', 'EnrichedMarkdownText', 'formatted text input', 'WYSIWYG'…
Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Mobile, covering Cross-platform mobile apps, Markdown and LaTeX. It works with React Native, LaTeX and iOS. The repository describes itself as: HealthKit bindings for React Native with TypeScript. The licence is MIT.
Read from SKILL.md and the folder at commit 9e4e186. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
reactnative.devAlso links to:
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Rich Text loads about 3.1k tokens when it runs. Until then it costs about 192 tokens; SKILL.md has 811 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from kingstinct/react-native-healthkit at commit 9e4e186, republished under its MIT licence (© kingstinct). 811 words, ~3,112 tokens.
.claude/skills/rich-text/SKILL.md (or your agent's skills folder).Software Mansion's production patterns for rich text editing and Markdown rendering in React Native.
There are two libraries that cover rich text use cases:
| Library | Component | Purpose |
|---|---|---|
react-native-enriched | EnrichedTextInput | Rich text editing (input) |
react-native-enriched-markdown | EnrichedMarkdownText | Markdown rendering (display) |
Both libraries require the React Native New Architecture (Fabric) and support iOS and Android.
react-native-enrichedreact-native-enriched-markdownEnrichedTextInput is a native, uncontrolled rich text input. It directly interacts with platform-specific components for performance, meaning it does not use React state for its value.
npm install react-native-enrichedimport { EnrichedTextInput } from 'react-native-enriched';
import type {
EnrichedTextInputInstance,
OnChangeStateEvent,
} from 'react-native-enriched';
import { useState, useRef } from 'react';
import { View, Button, StyleSheet } from 'react-native';
export default function RichEditor() {
const ref = useRef<EnrichedTextInputInstance>(null);
const [stylesState, setStylesState] = useState<OnChangeStateEvent | null>();
return (
<View style={styles.container}>
<EnrichedTextInput
ref={ref}
onChangeState={(e) => setStylesState(e.nativeEvent)}
style={styles.input}
/>
<Button
title={stylesState?.bold.isActive ? 'Unbold' : 'Bold'}
color={stylesState?.bold.isActive ? 'green' : 'gray'}
onPress={() => ref.current?.toggleBold()}
/>
</View>
);
}Toggling styles via ref: All formatting is applied imperatively through the ref. Call ref.current?.toggleBold(), ref.current?.toggleItalic(), etc.
Style detection via onChangeState: The onChangeState callback fires whenever the style state changes (e.g., cursor moves into bold text). Each style reports three properties:
isActive: The style is applied at the current selection (highlight the toolbar button)isBlocking: The style is blocked by another active style (disable the toolbar button)isConflicting: The style conflicts with another active style (toggling it removes the conflicting style)Inline vs paragraph styles:
HTML output: Get HTML via ref.current?.getHTML() (on-demand, returns a Promise) or the onChangeHtml callback (continuous, has performance cost for large documents). Prefer getHTML() when you only need HTML at save time.
Setting content: Use defaultValue prop for initial HTML content, or ref.current?.setValue(html) to update imperatively.
The OnChangeStateEvent key column shows the exact property name on the event object returned by onChangeState. Use these keys when reading style state (e.g. stylesState.strikeThrough.isActive). Note that casing varies (e.g. strikeThrough with capital T, inlineCode with capital C).
| Style | Toggle method | OnChangeStateEvent key | Type |
|---|---|---|---|
| Bold | toggleBold() | bold | Inline |
| Italic | toggleItalic() | italic | Inline |
| Underline | toggleUnderline() | underline | Inline |
| Strikethrough | toggleStrikeThrough() | strikeThrough | Inline |
| Inline code | toggleInlineCode() | inlineCode | Inline |
| H1 | toggleH1() | h1 | Paragraph |
| H2 | toggleH2() | h2 | Paragraph |
| H3 | toggleH3() | h3 | Paragraph |
| H4 | toggleH4() | h4 | Paragraph |
| H5 | toggleH5() | h5 | Paragraph |
| H6 | toggleH6() | h6 | Paragraph |
| Code block | toggleCodeBlock() | codeBlock | Paragraph |
| Block quote | toggleBlockQuote() | blockQuote | Paragraph |
| Ordered list | toggleOrderedList() | orderedList | Paragraph |
| Unordered list | toggleUnorderedList() | unorderedList | Paragraph |
| Checkbox list | toggleCheckboxList(checked) | checkboxList | Paragraph |
Links are detected automatically (customizable via linkRegex prop) or applied manually:
// Set link on selected text
ref.current?.setLink(selection.start, selection.end, selectedText, url);
// Remove link
ref.current?.removeLink(start, end);Use onChangeSelection to get selection position and onLinkDetected to detect when the cursor is near a link.
Mentions support custom indicators (default: @). Set custom indicators via the mentionIndicators prop.
<EnrichedTextInput
ref={ref}
mentionIndicators={['@', '#']}
onStartMention={(indicator) => { /* show picker */ }}
onChangeMention={({ indicator, text }) => { /* filter list */ }}
onEndMention={(indicator) => { /* hide picker */ }}
/>
// Complete the mention when user selects from picker
ref.current?.setMention('@', 'John Doe', { userId: '123' });ref.current?.setImage(imageUri, width, height);Images are inserted at the cursor position (or replace selected text) and affect line height. You are responsible for providing correct dimensions.
For the full API (all props, ref methods, events, HtmlStyle customization, context menu items), webfetch the react-native-enriched README.
EnrichedMarkdownText renders Markdown as fully native text (no WebView). It uses md4c for high-performance CommonMark-compliant parsing.
npm install react-native-enriched-markdownimport { EnrichedMarkdownText } from 'react-native-enriched-markdown';
import { Linking } from 'react-native';
const markdown = `
# Welcome
This is **bold**, *italic*, and [a link](https://reactnative.dev).
- List item one
- List item two
`;
export default function MarkdownDisplay() {
return (
<EnrichedMarkdownText
markdown={markdown}
onLinkPress={({ url }) => Linking.openURL(url)}
/>
);
}| Flavor | Features | Layout |
|---|---|---|
commonmark (default) | All CommonMark elements, inline math ($...$) | Single TextView |
github | CommonMark + GFM tables, task lists, block math ($$...$$) | Segmented layout (separate TextViews + table views) |
<EnrichedMarkdownText
flavor="github"
markdown={markdown}
onLinkPress={({ url }) => Linking.openURL(url)}
/>Tables require flavor="github" and support column alignment, rich text in cells, horizontal scrolling, header styling, alternating row colors, and a long-press context menu.
<EnrichedMarkdownText
flavor="github"
markdown={tableMarkdown}
markdownStyle={{
table: {
fontSize: 14,
borderColor: '#E5E7EB',
borderRadius: 8,
headerBackgroundColor: '#F3F4F6',
cellPaddingHorizontal: 12,
cellPaddingVertical: 8,
},
}}
/>Task lists require flavor="github". Handle checkbox taps with onTaskListItemPress:
<EnrichedMarkdownText
flavor="github"
markdown={`- [x] Done\n- [ ] Todo`}
onTaskListItemPress={({ index, checked, text }) => {
console.log(`Task ${index}: ${checked ? 'checked' : 'unchecked'}`);
}}
/>$...$): works in both flavors$$...$$): requires flavor="github", must be on its own lineUse String.raw or double backslashes for LaTeX commands in JS strings.
Disable math to reduce bundle size (iosMath ~2.5 MB on iOS):
<EnrichedMarkdownText md4cFlags={{ latexMath: false }} markdown="..." />Use the markdownStyle prop. Memoize it with useMemo to avoid re-renders:
import type { MarkdownStyle } from 'react-native-enriched-markdown';
const markdownStyle: MarkdownStyle = useMemo(() => ({
paragraph: { fontSize: 16, color: '#333', lineHeight: 24 },
h1: { fontSize: 32, fontWeight: 'bold', marginBottom: 16 },
code: { color: '#E91E63', backgroundColor: '#F5F5F5' },
codeBlock: { backgroundColor: '#1E1E1E', color: '#D4D4D4', padding: 16, borderRadius: 8 },
link: { color: '#007AFF', underline: true },
blockquote: { borderColor: '#007AFF', backgroundColor: '#F0F8FF' },
}), []);Inline elements inherit typography from their parent block (fontSize, fontFamily, color), then add their own styling on top.
<EnrichedMarkdownText
markdown={content}
onLinkPress={({ url }) => Linking.openURL(url)}
onLinkLongPress={({ url }) => showShareSheet(url)}
// On iOS, providing onLinkLongPress disables the system link preview
/>selectable prop). Smart Copy provides plain text, Markdown, HTML, RTF, and RTFD on iOS.I18nManager.forceRTL(true) before rendering.md4cFlags={{ underline: true }} makes _text_ render as underline instead of italic.For detailed API documentation, webfetch the relevant page from the upstream docs:
fontSize as the input's fontSizeflavor="github" segments text into separate TextViews, so text selection cannot span across segments© kingstinct, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/react-native-best-practices/references/rich-text of kingstinct/react-native-healthkit.
Open the folder on GitHubat commit 9e4e186
Rich Text next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Rich Text this skillkingstinct/react-native-healthkit | 716 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Rich Textsoftware-mansion-labs/skills | 291 | — | ~5.4k | Automated safety check: Pass | None | |
| Rnn Codebasewix/react-native-navigation | 13k | — | ~2k | Automated safety check: Pass | MIT | |
| Ios26 Navigationwix/react-native-navigation | 13k | — | ~8.3k | Automated safety check: Pass | MIT | |
| App Store Reviewsafaiyeh/app-store-review-skill | 362 | 1 repos | ~3.4k | Automated safety check: Pass | MIT | |
| Apple Designvrcm-team/VRCM | 179 | 1 repos | ~6.2k | Automated safety check: Pass | MIT |
software-mansion-labs/skills
Software Mansion's best practices for rich text in React Native using react-native-enriched-html (formerly react-native-enriched) and react-native-enriched-markdown.
wix/react-native-navigation
Navigate and work with the react-native-navigation (RNN) codebase.
wix/react-native-navigation
Reference for iOS 26 navigation bar, tab bar, toolbar, and Liquid Glass building blocks (UITab, scroll-edge effects, search placement, shared-background platter, UIButton glass configurations…
safaiyeh/app-store-review-skill
Evaluates code against Apple's App Store Review Guidelines. An agent skill from safaiyeh/app-store-review-skill.
vrcm-team/VRCM
Cross-platform UI/UX design reviewer grounded in Apple's Human Interface Guidelines (122 pages pulled from developer.apple.com, including 57 component pages) plus a design-craft lens for…
CherryHQ/cherry-studio-app
Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling
kingstinct/react-native-healthkit
How to use @kingstinct/react-native-healthkit (and its sibling @react-native-healthkit/health-records) to read, write and subscribe to Apple HealthKit data from React Native / Expo apps.
kingstinct/react-native-healthkit
Software Mansion's best practices for gestures in React Native apps using React Native Gesture Handler.
kingstinct/react-native-healthkit
Deploying Expo apps to iOS App Store, Android Play Store, web hosting, and API routes
kingstinct/react-native-healthkit
How to change the react-native-healthkit monorepo itself (packages/core, packages/react-native-healthkit, packages/health-records, apps/example).
kingstinct/react-native-healthkit
Software Mansion's best practices for multithreading in React Native apps using react-native-worklets.
kingstinct/react-native-healthkit
Build and distribute Expo development clients locally or via TestFlight
Works with
Categories
Software Mansion's best practices for rich text in React Native using react-native-enriched and react-native-enriched-markdown. Rich Text is an agent skill from kingstinct/react-native-healthkit. Software Mansion's best practices for rich text in React Native using react-native-enriched and react-native-enriched-markdown.
Rich Text fits situations like: building rich text editors; formatted text inputs; markdown renderers; any feature requiring inline styling.
Run `npx skills add kingstinct/react-native-healthkit --skill rich-text -a claude-code`. Or copy the skill folder (.agents/skills/react-native-best-practices/references/rich-text in kingstinct/react-native-healthkit) into .claude/skills/rich-text in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kingstinct/react-native-healthkit --skill rich-text -a codex`. Or copy the skill folder (.agents/skills/react-native-best-practices/references/rich-text in kingstinct/react-native-healthkit) into .agents/skills/rich-text in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kingstinct/react-native-healthkit --skill rich-text -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rich-text, .gemini/skills/rich-text, .github/skills/rich-text and .opencode/skills/rich-text in your project.
Going by SKILL.md and its folder, Rich Text needs the command-line tools its instructions call (npm). Our summary lists: Node.js.
SKILL.md names 2 domains. In commands or code: reactnative.dev; the agent is likely to contact it when it follows the instructions. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Rich Text is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.1k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Rich Text: Rich Text (software-mansion-labs/skills, 291 stars), Rnn Codebase (wix/react-native-navigation, 13k stars), Ios26 Navigation (wix/react-native-navigation, 13k stars) and App Store Review (safaiyeh/app-store-review-skill, 362 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
kingstinct (a GitHub organization) maintains it in kingstinct/react-native-healthkit, which has 716 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 7, 2026.
Source: kingstinct/react-native-healthkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.