halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.98k stars 291 forks source link

Update to use createRef instead of string refs #86

Closed magfurulabeer closed 5 years ago

magfurulabeer commented 6 years ago

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 commented 5 years ago

Thanks a lot @magfurulabeer. This looks great!