software-mansion/react-native-enriched

[Feature Request] Add insertText(text) API to insert plain text at cursor

Open

#255 ouverte le 17 nov. 2025

Voir sur GitHub
 (2 commentaires) (3 réactions) (0 assignés)C (45 forks)auto 404
enhancementgood first issue

Métriques du dépôt

Stars
 (1 246 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

EnrichedTextInput currently provides formatting commands (bold, image, mention, link, etc.), but there is no API to insert plain text at the current cursor position.

A simple method like:

insertText(text: string): void

would allow developers to implement common features such as inserting emoji (😄), autocomplete suggestions, custom keyboard input, and snippet insertion. Using setValue() is not a solution because it breaks formatting, history, and cursor state.

This feature requires only minimal native changes and would greatly improve integration with custom input components.

Guide contributeur