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

Expo error ViewPropTypes.style on Release mode #101

Closed
leoafarias opened this issue Jan 29, 2021 · 9 comments
Closed

Expo error ViewPropTypes.style on Release mode #101

leoafarias opened this issue Jan 29, 2021 · 9 comments

Comments

@leoafarias
Copy link

Hi,

While running the expo app in release mode. I am getting an error
TypeError: undefined is not an object (evaluating 'k.ViewPropTypes.style')

Which means the app gets a blank screen and doesn't open. The issue points at this package, sorry if I cannot get a more detailed error, but on production, a lot of the logs are being supressed.

@sdavid501
Copy link

sdavid501 commented Mar 12, 2021

I'm getting similar error node_modules/react-native-onboarding-swiper/src/Page.js:52:
49 | Page.propTypes = {
50 | isLight: PropTypes.bool.isRequired,
51 | image: PropTypes.element.isRequired,

52 | containerStyles: ViewPropTypes.style,
53 | imageContainerStyles: ViewPropTypes.style,
54 | title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
55 | subtitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element])

@ranjani23
Copy link

+1, I ran into this error as well. looks like there are other search hits with ViewPropTypes being deprecated as well. reactrondev/react-native-web-swiper#41

@abuhumayed
Copy link

I tried on Expo too, I'm new to react-native but deffo won't be trying this again on Expo, it resulted in me having to try to re-install node and clone and initialise my project on a new one .

@AW42
Copy link

AW42 commented Apr 1, 2021

I tried on Expo too, I'm new to react-native but deffo won't be trying this again on Expo, it resulted in me having to try to re-install node and clone and initialise my project on a new one .

What's the solution then? it was working fine then after few days I come across this error and can't find its solution

@jonsmirl
Copy link

jonsmirl commented May 1, 2021

This component is not compatible with Expo until the ViewPropTypes issues are resolved.

@jayrap24
Copy link

Yeah same here, getting that error and I have Expo. Anyone know of good alternatives?

@abuhumayed
Copy link

abuhumayed commented May 22, 2021 via email

@abuhumayed
Copy link

abuhumayed commented May 22, 2021 via email

@jfilter
Copy link
Owner

jfilter commented Jan 31, 2022

This was fixed. However, React Native for Web is currently not working. #83

@jfilter jfilter closed this as completed Jan 31, 2022
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

No branches or pull requests

8 participants