agentleFS
software-mansionsoftware-mansion/react-native-enriched/.github/copilot-instructions.md

react-native-enriched

Copilot instructions1.4k starsChanged 4 days agoMITView on GitHub

Condensed from .agents/skills/review-changes/ (code review + parity stages; no device testing). Keep the two in sync. CodeRabbit PR review loads this file automatically as a code guideline (see .coderabbit.yaml); keep it short and focused on what a PR bot can check. react-native-enriched ships one EnrichedTextInput / EnrichedText API on three implementations: iOS (ios/), Android (android/), web (src/web/). Shared: TS API (src/), HTML parser (cpp/parser). Lint, typecheck, tests and native formatting run in CI — don't report what those catch. A…

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 4 mentionsJul 2026: 4 mentionsAug 2026: 2 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the software-mansion/react-native-enriched repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about software-mansion/react-native-enriched

The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 15

Talked about on GitHub and Bluesky (15 times).

On GitHub · 14

9 more on GitHub

On Bluesky · 1

The file

We split this copilot-instructions.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep the two in sync. CodeRabbit PR review loads this file automatically as a code guideline (see .coderabbit.yaml).

    line 4
  2. Distinctive:

    No style nits, no praise, no summaries of what the PR does.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 3,950 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Review instructions

Condensed from .agents/skills/review-changes/ (code review + parity stages; no device testing). Keep the two in sync. CodeRabbit PR review loads this file automatically as a code guideline (see .coderabbit.yaml); keep it short and focused on what a PR bot can check.

react-native-enriched ships one EnrichedTextInput / EnrichedText API on three implementations: iOS (ios/), Android (android/), web (src/web/). Shared: TS API (src/), HTML parser (cpp/parser). Lint, typecheck, tests and native formatting run in CI — don't report what those catch.

Feature parity (most important)

A change to one platform usually needs the same change on the others. For each behaviour the PR touches, find its counterpart and check it behaves the same (defaults, edge cases, event payloads, HTML output):

  • styles: ios/styles/*Style.mm ↔ android/**/textinput/styles/*.kt + spans/ ↔ src/web/formats/Enriched*.ts
  • HTML parsing: ios/{html,inputHtml,textHtml}Parser/ ↔ android/**/common/parser/ ↔ src/web/htmlExtensions/, sanitization/, normalization/ (+ cpp/parser)
  • props/commands/events: ios/EnrichedTextInputView.mm ↔ Android view manager + events/ ↔ src/web/EnrichedTextInput.tsx, nativeMappers/

Flag as a parity gap any platform that is missing the change or diverges, unless it is listed in docs/docs/misc/compatibility.mdx / known-limitations.md or explained in the PR. A bug fixed on one platform that still exists on another is a parity gap. An intentional but undocumented difference: ask for a compatibility.mdx entry.

Correctness

  • Empty text; selection at start/end; collapsed vs ranged selection.
  • Nested/overlapping styles; toggling a style across a boundary.
  • Paragraph styles (lists, headings, blockquote, code block, checkbox, alignment) over several paragraphs, and Enter/Backspace at their edges.
  • Undo/redo; paste of plain text and HTML; IME/composition.
  • Emoji / surrogate pairs: UTF-16 offsets (JS) vs native indices.
  • iOS: UIKit work off the main thread, retain cycles in blocks/delegates, NSRange bounds, TARGET_OS_OSX guards in shared code.
  • Android: span flags, SpannableStringBuilder index math, watchers re-entering on their own edits, UI-thread access.
  • Events: payload matches src/spec/*NativeComponent.ts; nothing emitted after unmount.

HTML round trip

value → native → getHTML() must give equivalent HTML. New/changed tags or attributes must be handled by the parsers, the normalizer and web sanitization; attribute values must be escaped.

API surface

New/changed props, commands or events must appear in src/types.ts, src/spec/*NativeComponent.ts, default props, and docs/docs/api-reference/. Call out breaking changes. Unit-testable logic needs tests (src/web/__tests__, cpp/tests).

How to comment

  • Severity prefix: blocker (crash, data loss, HTML corruption), major (wrong behaviour, common edge case, parity gap), minor (rare edge case, missing test/docs).
  • Point at the line, say what goes wrong and how to reproduce it, suggest a fix. For parity gaps, name the counterpart file that needs the change.
  • No style nits, no praise, no summaries of what the PR does.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.