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

How to set value on render? #66

Open
ibrahimPorgin opened this issue Nov 19, 2021 · 2 comments
Open

How to set value on render? #66

ibrahimPorgin opened this issue Nov 19, 2021 · 2 comments

Comments

@ibrahimPorgin
Copy link

No description provided.

@Satishpethani92
Copy link

There is no way i guess but would really appreciate if this will get implemented.

@Satishpethani92
Copy link

Temporary solution is to set below code inside node_modules/react-native-intl-phone-input/src/IntlPhoneInput.js

componentDidMount() { 
  this.onChangeText(this.props.phoneNumber)
}

And pass phone number as prop.

phoneNumber={phone_number}

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