NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Fix:v2 rn 0 69 crash

Open inspmoore opened this issue 2 years ago • 3 comments

Summary

NativeBase v. 2 causes a crash when used within a project running React Native v. 0.69 and higher. Check out this issue Native-Base 2.15.2 incompatible with React-Native 0.69 #5358 This is because prop types have been internally in RN changed to static type checking using Flow - see RN Changelog. prop types are no longer available in the react-native package and calling this api will throw an invariant error. For backwards compatibility RN team created a separate package deprecated-react-native-prop-types. This PR simply changes the calls to deprecated internal API to the new ones from the dedicated package.

Changelog

[General] [Fixed] - fixed a crash on projects using react-native v. 0.69 and later caused by calling removed prop-types API

Test Plan

No tests planned for this.

inspmoore avatar Sep 16 '22 12:09 inspmoore

Someone is attempting to deploy a commit to the Geekyants Team Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Sep 16 '22 12:09 vercel[bot]

@inspmoore Thank you for that PR!

when can we expect a release for this in v2? It's preventing a build on RN 0.69.

Relax594 avatar Sep 19 '22 06:09 Relax594

@inspmoore Thank you for that PR!

when can we expect a release for this in v2? It's preventing a build on RN 0.69.

My pleasure. I'm not a maintainer of this repo, so I guess it's a question for @rayan1810.

inspmoore avatar Sep 19 '22 07:09 inspmoore

@rayan1810 @surajahmed @ankit-tailor can we please have this merged and released in v2. It's critical and preventing production use of v2 with RN 0.69

Relax594 avatar Sep 27 '22 14:09 Relax594

+1

Aichnerc avatar Sep 30 '22 06:09 Aichnerc

+1

kadircanozdemir avatar Oct 21 '22 10:10 kadircanozdemir

Do we have any news? I am stuck with expo SDK47 as well.

GSolari79 avatar Nov 10 '22 16:11 GSolari79

@inspmoore Is there any solution to this? It's critical for me

GSolari79 avatar Nov 10 '22 16:11 GSolari79

@inspmoore Is there any solution to this? It's critical for me

@GSolari79 You're welcome to use my clone until that fix is merged. I'm using it on my production app. This is what you have to add to your package.json

  "dependencies":  {
    "native-base": "https://github.com/inspmoore/NativeBase.git#fix/v2-rn-0-69-crash",
}

@rayan1810 is there anything I can help with to make this fix be merged and deployed?

inspmoore avatar Nov 10 '22 19:11 inspmoore

@rayan1810 @surajahmed @ankit-tailor

Nativebase 2.15.2 is the second most downloaded version according to NPM. This should be a high priority review.

kpheasey avatar Nov 16 '22 21:11 kpheasey

@rayan1810 @surajahmed I totally agree with @kpheasey.

GSolari79 avatar Nov 16 '22 21:11 GSolari79

Native Base 3.0 is basically an entirely different project. Im not sure why the name was kept the same. It's not even remotely similar. No migration shim was provided. It only vaguely resembles the original.

@inspmoore Version 2 should be permanently forked and maintained if a 2 month old critical patch can't be merged in.

celandro avatar Nov 20 '22 19:11 celandro

@rayan1810 Can this be merged and released in native-base v2 as a new version to support RN 0.69+?

R4DIC4L avatar Mar 16 '23 11:03 R4DIC4L