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

Update to use createRef instead of string refs #86

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

magfurulabeer
Copy link

As of the latest React Native, string refs are considered legacy. They're likely to be removed in one of the future releases.

All instances of string refs have been replaced with the new createRef API. This also makes it Strict Mode-compliant. Otherwise, the latest version of React Native with Strict Mode on throws this warning:

WARNING: A string ref, "Input", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using createRef() instead.

@halilb halilb merged commit fcc80cc into halilb:master Feb 8, 2019
@halilb
Copy link
Owner

halilb commented Feb 8, 2019

Thanks a lot @magfurulabeer. This looks great!

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