NativeBase
NativeBase copied to clipboard
Fix:v2 rn 0 69 crash
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.
Someone is attempting to deploy a commit to the Geekyants Team Team on Vercel.
A member of the Team first needs to authorize it.
@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.
@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.
@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
+1
+1
Do we have any news? I am stuck with expo SDK47 as well.
@inspmoore Is there any solution to this? It's critical for me
@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?
@rayan1810 @surajahmed @ankit-tailor
Nativebase 2.15.2 is the second most downloaded version according to NPM. This should be a high priority review.
@rayan1810 @surajahmed I totally agree with @kpheasey.
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.
@rayan1810 Can this be merged and released in native-base v2 as a new version to support RN 0.69+?