NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.

Open harish-narra opened this issue 2 years ago • 11 comments

Description

tried to update react-native version 0.69.1 getting this error ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.

CodeSandbox/Snack link

NA

Steps to reproduce

No response

NativeBase Version

3.4.9

Platform

  • [X] Android
  • [x] CRA
  • [X] Expo
  • [X] iOS
  • [x] Next

Other Platform

No response

Additional Information

No response

harish-narra avatar Aug 03 '22 05:08 harish-narra

Hey @harish-narra, Thanks for reporting the issue. We'll look into it.

ankit-tailor avatar Aug 09 '22 06:08 ankit-tailor

Thanks, @ankit-tailor, if possible please look into ASAP, we are using this library, and we need to release the app with a new update without any patches. hope you understand

harish-narra avatar Aug 09 '22 06:08 harish-narra

Hi, same error here. Is there a workaround for this?

Luca-Settle avatar Aug 09 '22 17:08 Luca-Settle

@harish-narra you found any patch or something? this is a huge incompatibility for expo sdk 46

Luca-Settle avatar Aug 19 '22 19:08 Luca-Settle

This bug is still there in native-base@latest and acts as a blocker for me while migrating to new architecture react-native. @ankit-tailor Please look into this.

@Luca-Settle and @harish-narra Guys please share if you got any solution regarding this bug.

Prasannsitani avatar Nov 23 '22 17:11 Prasannsitani

Same here! Any updates on this issue?

maaliHasan avatar Jan 11 '23 08:01 maaliHasan

Same issue here

AdriBee avatar Feb 17 '23 14:02 AdriBee

any updates on the issue , i am getting the error expo sdk 46 , i have used patchpackages which are working fine in development builds , but app is getting crashed on standalone apk

rohith-thummanapally avatar May 11 '23 18:05 rohith-thummanapally

Check this: https://www.reddit.com/r/reactnative/comments/11lay13/invariant_violation_viewproptypes_has_been/

My answer is the last one and worked for me as a solution.

AdriBee avatar May 11 '23 19:05 AdriBee

Is this still an issue with the latest version Native Base V3.4.28?

huhu1030 avatar Jun 02 '23 13:06 huhu1030

Guys! You understand the hassle with the upgrade from v2 to v3 right? Tell me what should I do? Should I upgrade the whole app from 6 years ago manually updating latest versions of all dependencies for NativeBase to work or can I expect a new 2.x.x version to solve this issue?

Deepan455 avatar Jan 17 '24 18:01 Deepan455