Skip to content

[iOS] Bold and other formatting stripped when autocorrect replaces a word #548

@ashishmangukiya

Description

@ashishmangukiya

Describe the bug
When typing with Bold enabled on iOS, autocorrect/autocomplete interferes with the bold formatting. As you type a word, the autocorrect suggestion replaces the word and simultaneously removes the bold style. The replacement text loses its bold
formatting.

This is a regression introduced in 0.6.x — the issue did not exist in 0.5.2.

To Reproduce

  1. Open the app and create a new journal entry
  2. Tap the Bold button in the toolbar to enable bold formatting
  3. Start typing a word, e.g., "hello worls"
  4. Notice "worls" gets auto-selected by iOS autocorrect (suggesting "world")
  5. Press Space to accept the autocorrect suggestion
  6. Observe: the bold formatting is removed from the corrected word ("world" appears in normal weight), and the bold state is deactivated in the toolbar

Expected behavior
When autocorrect replaces a misspelled word while Bold is active:

  • The replacement text ("world") should retain bold formatting
  • The Bold state in the toolbar should remain active
  • Subsequent typing should continue in bold

This worked correctly in version 0.5.2.

Vidoe
https://github.com/user-attachments/assets/2ac95dc4-06e9-4db6-b2e5-52e5ae56000a

Device (please complete the following information):

  • Device: iPhone (tested on simulator and real device)
  • OS: iOS 26+
  • Library version: react-native-enriched 0.6.1

Additional context

  • This only happens on iOS. Android does not exhibit this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions