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

Upgrade to use separate proptypes library for react 16#172

Open
suark wants to merge 2 commits into
invertase:masterfrom
suark:proptype_upgrade
Open

Upgrade to use separate proptypes library for react 16#172
suark wants to merge 2 commits into
invertase:masterfrom
suark:proptype_upgrade

Conversation

@suark

@suark suark commented Oct 24, 2017

Copy link
Copy Markdown

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
Copy Markdown

Please merge this PR

@tbarsbay

Copy link
Copy Markdown

+1 to please merge this PR

@CLAassistant

CLAassistant commented Jul 11, 2019

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@suark

suark commented Jul 31, 2019

Copy link
Copy Markdown
Author

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