jfilter / react-native-onboarding-swiper

🛳 Delightful onboarding for your React-Native app
https://www.npmjs.com/package/react-native-onboarding-swiper
Other
971 stars 179 forks source link

Expo error ViewPropTypes.style on Release mode #101

Closed leoafarias closed 2 years ago

leoafarias commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

abuhumayed commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

jayrap24 commented 3 years ago

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

abuhumayed commented 3 years ago

I managed to get mine working on expo in the end, not near my laptop now but lookup getting async storage for expo and use the necessary import lined for it. I'll have a look once able to

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Jesper Rapouw @.> Sent: Saturday, May 22, 2021 8:19:44 AM To: jfilter/react-native-onboarding-swiper @.> Cc: abuhumayed @.>; Comment @.> Subject: Re: [jfilter/react-native-onboarding-swiper] Expo error ViewPropTypes.style on Release mode (#101)

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/jfilter/react-native-onboarding-swiper/issues/101#issuecomment-846367544, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSMYA5IPVUG5L2PYU3W5R3TO5LJBANCNFSM4WZAZQBQ.

abuhumayed commented 3 years ago

I'm pretty sure I used to get the package

expo install react-native-onboarding-swiper

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Abu humayed Junayed @.> Sent: Saturday, May 22, 2021 3:45:05 PM To: jfilter/react-native-onboarding-swiper @.>; jfilter/react-native-onboarding-swiper @.> Cc: Comment @.> Subject: Re: [jfilter/react-native-onboarding-swiper] Expo error ViewPropTypes.style on Release mode (#101)

I managed to get mine working on expo in the end, not near my laptop now but lookup getting async storage for expo and use the necessary import lined for it. I'll have a look once able to

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Jesper Rapouw @.> Sent: Saturday, May 22, 2021 8:19:44 AM To: jfilter/react-native-onboarding-swiper @.> Cc: abuhumayed @.>; Comment @.> Subject: Re: [jfilter/react-native-onboarding-swiper] Expo error ViewPropTypes.style on Release mode (#101)

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/jfilter/react-native-onboarding-swiper/issues/101#issuecomment-846367544, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSMYA5IPVUG5L2PYU3W5R3TO5LJBANCNFSM4WZAZQBQ.

jfilter commented 2 years ago

This was fixed. However, React Native for Web is currently not working. https://github.com/jfilter/react-native-onboarding-swiper/issues/83