Skip to content

feat: add autoCorrect and spellCheck props#519

Open
fendent wants to merge 1 commit intosoftware-mansion:mainfrom
fendent:feat/autocorrect-spellcheck-props
Open

feat: add autoCorrect and spellCheck props#519
fendent wants to merge 1 commit intosoftware-mansion:mainfrom
fendent:feat/autocorrect-spellcheck-props

Conversation

@fendent
Copy link
Copy Markdown
Contributor

@fendent fendent commented Apr 6, 2026

Summary

Adds autoCorrect and spellCheck boolean props to control iOS UITextAutocorrectionType and UITextSpellCheckingType.

Currently there's no way to disable autocorrect or spell checking on the input. These props follow the same pattern as the existing autoCapitalize prop.

<EnrichedTextInput
  autoCorrect={false}
  spellCheck={false}
/>

When not specified, both default to the system behavior (enabled).

Test Plan

  1. Set autoCorrect={false} — verify iOS does not suggest autocorrect replacements
  2. Set spellCheck={false} — verify iOS does not underline misspelled words
  3. Omit both props — verify default system behavior (both enabled)
  4. Toggle props at runtime — verify behavior updates

Compatibility

OS Implemented
iOS
Android

Checklist

  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

Adds boolean autoCorrect and spellCheck props to control iOS
autocorrection and spell checking. Both default to system behavior
when not specified.
Copy link
Copy Markdown
Collaborator

@exploIF exploIF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the autoCorrect, it would be the best to introduce this prop on Android too, so it's consistent with react native TextInput

Comment on lines +61 to +62
autoCorrect,
spellCheck,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would explicitly mark them as enabled by default

Suggested change
autoCorrect,
spellCheck,
autoCorrect = true,
spellCheck = true,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants