Skip to content

Add smartInsertDelete prop to textinput.md#3560

Closed
fabioh8010 wants to merge 1 commit intofacebook:mainfrom
fabioh8010:feature/text-input-ios-autoformatting-behaviors
Closed

Add smartInsertDelete prop to textinput.md#3560
fabioh8010 wants to merge 1 commit intofacebook:mainfrom
fabioh8010:feature/text-input-ios-autoformatting-behaviors

Conversation

@fabioh8010
Copy link

This PR is related to this one: facebook/react-native#36111

@netlify
Copy link

netlify bot commented Feb 9, 2023

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 386b228
🔍 Latest deploy log https://app.netlify.com/sites/react-native/deploys/63e524f3a0ee900008f31944
😎 Deploy Preview https://deploy-preview-3560--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Simek Simek added 🕐 Waiting on PR These may be waiting for a PR to the facebook/react-native to be merged Wait on future Release This indicates a PR that updates the doc to match a future release. labels Feb 9, 2023
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Jun 8, 2023
Summary:
This PR add support to configure the `smartInsertDeleteType` property in iOS inputs [as described here](https://developer.apple.com/documentation/uikit/uitextinputtraits/2865828-smartinsertdeletetype), making possible toggle this autoformatting behavior.

PR for the docs update: facebook/react-native-website#3560

## Changelog:

[IOS] [ADDED] - Add `smartInsertDelete` prop to `TextInput` component

Pull Request resolved: #36111

Test Plan:
* Added an example in the RNTester app to test this behavior in iOS.
* If the `smartInsertDelete` prop is `true` or `undefined`, the system will use the default autoformatting behavior.
* If the `smartInsertDelete` prop is `false`, the system will disable the autoformatting behavior.

https://user-images.githubusercontent.com/20051562/217862828-70c20344-d687-4824-8f5d-d591eff856ef.mp4

Reviewed By: javache

Differential Revision: D46546277

Pulled By: NickGerleman

fbshipit-source-id: 3172b14fb196876d9ee0030186540608204b96de
@Simek
Copy link
Collaborator

Simek commented Aug 19, 2025

Hey @fabioh8010, thanks for the contribution! 👍 Sorry for missing this one out earlier.

Since there were some changes to the docs, and we want to correct the order of prop, going to close this one in favour of:

@Simek Simek closed this Aug 19, 2025
@fabioh8010
Copy link
Author

Thanks for handling this!

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

Labels

CLA Signed 🕐 Waiting on PR These may be waiting for a PR to the facebook/react-native to be merged Wait on future Release This indicates a PR that updates the doc to match a future release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants