Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Upgrade to use separate proptypes library for react 16 #172

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Upgrade to use separate proptypes library for react 16 #172

wants to merge 2 commits into from

Conversation

suark
Copy link

@suark suark commented Oct 24, 2017

In react 16 and up, React.Proptypes no longer exists. Instead we must use the new, separate proptypes library:
https://github.com/facebook/prop-types

react-native version 0.49 uses react 16 https://github.com/facebook/react-native/blob/v0.49.0/package.json#L135

So react-native-material-design must be updated or it will be remain incompatible with newer versions of react-native.

I have removed any references to the React.proptypes while also updating the dependency of react-native-vector-icons

That dependency has been updated to use the correct proptypes so we only have to update to the newest and it is fine.

I ran the linting and noticed that the master branch contains roughly 220 linting errors and after my changes, it still has the exact same number. So my PR should not be rejected due to linting errors that I did not cause.

Should resolve #170

@amensouissi
Copy link

Please merge this PR

@tbarsbay
Copy link

+1 to please merge this PR

@CLAassistant
Copy link

CLAassistant commented Jul 11, 2019

CLA assistant check
All committers have signed the CLA.

@suark
Copy link
Author

suark commented Jul 31, 2019

hopefully this is still possible. I deleted my fork haha. It was made almost 2 years ago

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update PropTypes library
4 participants