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

Adding autoComplete support for iOS #58

Open
spdrstar opened this issue Sep 8, 2023 · 1 comment
Open

Adding autoComplete support for iOS #58

spdrstar opened this issue Sep 8, 2023 · 1 comment

Comments

@spdrstar
Copy link

spdrstar commented Sep 8, 2023

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-phone-input/dist/PhoneInput.js b/node_modules/react-native-phone-input/dist/PhoneInput.js
index 9d9180e..805da38 100644
--- a/node_modules/react-native-phone-input/dist/PhoneInput.js
+++ b/node_modules/react-native-phone-input/dist/PhoneInput.js
@@ -185,7 +185,7 @@ class PhoneInput extends react_1.default.Component {
             react_1.default.createElement(react_native_1.View, { style: { flex: 1, marginLeft: this.props.offset || 10 } },
                 react_1.default.createElement(TextComponent, Object.assign({ ref: (ref) => {
                         this.inputPhone = ref;
-                    }, accessibilityLabel: this.getAccessibilityLabel(), editable: !disabled, autoCorrect: false, style: [styles_1.default.text, this.props.textStyle], onChangeText: (text) => {
+                    }, accessibilityLabel: this.getAccessibilityLabel(), editable: !disabled, autoComplete: 'tel', autoCorrect: false, style: [styles_1.default.text, this.props.textStyle], onChangeText: (text) => {
                         this.onChangePhoneNumber(text);
                     }, keyboardType: "phone-pad", underlineColorAndroid: "rgba(0,0,0,0)", value: displayValue }, this.props.textProps))),
             react_1.default.createElement(CountryPicker_1.default, { ref: (ref) => {

This issue body was partially generated by patch-package.

@rililive
Copy link

rililive commented Sep 8, 2023

Can you create a PR and explain what problem this solves? I can merge and publish an updated version

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

No branches or pull requests

2 participants