Skip to content
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

ViewPropTypes Depricated - Invariant Violation Error #56

Open
eledahl opened this issue Aug 1, 2022 · 1 comment · May be fixed by #57
Open

ViewPropTypes Depricated - Invariant Violation Error #56

eledahl opened this issue Aug 1, 2022 · 1 comment · May be fixed by #57

Comments

@eledahl
Copy link

eledahl commented Aug 1, 2022

Upgrading to Expo 46/React-Native .69 gave me Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.

Narrowed it down to Pages being the cause. App only runs when I comment out the Pages component.

@LaikaTheSpaceDog
Copy link

Also having this issue - advice from RN is to change
import { ViewPropTypes } from 'react-native';
to
import { ViewPropTypes } from 'deprecated-react-native-prop-types';

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 a pull request may close this issue.

2 participants