react-native-password-strength-checker icon indicating copy to clipboard operation
react-native-password-strength-checker copied to clipboard

React 16 and React Native 0.50 compatibility issues

Open Nandez89 opened this issue 7 years ago • 0 comments

Could you please make the component compatible with React 16/ React Native 50? Right now app in production crashes due to an "Unhandled JS Exception: undefined is not an object (evaluating 's.View.prop..., stack:'"

That is being caused by the use of View.propTypes in PasswordStregthChecker.js the way to fix this would be to check for the newer ViewPropTypes and default to the old one if its not there. Like so: ViewPropTypes || View.propTypes

And to import ViewPropTypes from 'react-native'.

This is happening in statement line 76 for inputWrapperStyle, strengthWrapperStyle, strengthBarStyle and innerStrengthBarStyle

Nandez89 avatar Dec 11 '17 19:12 Nandez89