Skip to content

Migrate to deprecated-react-native-prop-types package #2156

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

Merged
merged 5 commits into from
Aug 17, 2022

Conversation

haikov
Copy link
Contributor

@haikov haikov commented Jul 31, 2022

Description

Since version 0.68 React Native started to warn that prop types will be removed from the core and in the latest 0.69 version (see breaking change in the release notes) it happened. Which made ui-lib incompatible with latest RN.

In this PR I migrated all imports of prop types from RN to imports from deprecated-react-native-prop-types. This package doesn't provide typings and there seem to be no @types/ version of it available, so I went with // @ts-expect-error for imports, let me know if you prefer some other alternative (writing proper custom types seemed to be quite a huge effort).

And I fixed 2 typos in markdown files.

resolves #2126
resolves #2094

Changelog

  • Migrate PropTypes imports to deprecated-react-native-prop-types package.

@haikov
Copy link
Contributor Author

haikov commented Aug 11, 2022

@ethanshar Hey! Any chance of getting this reviewed? This is one of the blockers for using UILib with ReactNative 0.69 (or expo 0.46).

@AwakenedMind
Copy link

AwakenedMind commented Aug 15, 2022

ran into this error as well, please review merge so we can upgrade to 0.69

@ethanshar ethanshar merged commit 0078fa5 into wix:master Aug 17, 2022
@ethanshar
Copy link
Collaborator

resolve #2159

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.

ViewPropTypes has been removed from React Native. ViewPropTypes will be removed from React Native
3 participants