Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOS] Add smartInsertDelete prop to TextInput component #40

Conversation

fabioh8010
Copy link

Upstream PR Link

facebook#36111

Summary

This PR add support to configure the smartInsertDeleteType property in iOS inputs as described here, making possible toggle this autoformatting behavior.

This will allow fixing this issue: Expensify/App#14049

Changelog

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

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.
Simulator.Screen.Recording.-.iPhone.14.-.2023-02-09.at.15.40.07.mp4

@fabioh8010
Copy link
Author

Copy link

@mountiny mountiny left a comment

Choose a reason for hiding this comment

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

code is looking good to me although I dont have much experience with this code.

Copy link

@sketchydroide sketchydroide left a comment

Choose a reason for hiding this comment

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

LGTM
Nothing iOS wise catches my eye as wrong, let's see if this tests good

@sketchydroide
Copy link

@mananjadhav can you see this?

Copy link

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

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

Sorry for the inconvenience, but this PR needs to be updated to target the Expensify-0.71.2-alpha.0 branch

@fabioh8010 fabioh8010 changed the base branch from Expensify-0.71.0-alpha1 to Expensify-0.71.2-alpha.0 February 13, 2023 09:42
@fabioh8010
Copy link
Author

Hi @roryabraham, could you please review the changes?

@mountiny mountiny requested a review from roryabraham February 13, 2023 12:56
@mananjadhav
Copy link

@sketchydroide I just reviewed this today.

Copy link

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

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

Seems fine to me

@roryabraham roryabraham merged commit da3c450 into Expensify:Expensify-0.71.2-alpha.0 Feb 13, 2023
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.

7 participants