You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We happen to use this library in one of our projects (nice job btw 👍 ), but I did notice something that doesn't jive with the latest versions of React Native.
I see your package.json locks down react and react-native to specific versions of both. Unfortunately, when trying to run this with the latest version of RN, it will cause issues. You'll get a weird RSOD that seems to indicate that ActivityIndicator can't be resolved, assuming you import it in from react-native.
The reason for this is because this library pulls in RN 0.40 on top of my actual version of React Native. This causes some collisions and the dependencies get jacked up. Please see this RN issue for reference: facebook/react-native#14302
In that issue, the react-native-calendar-picker was causing grief for that particular developer because it locked down the version of RN.
I'd suggest adding a little flexibility to your package.json. Stealing from AirBnB's react-native-maps library, you might want to refactor your package.json by moving your react-native and react from dependencies to peerDependencies like so:
@kylanhurt Probably my fault, but no one has mentioned this issue until now. Anyways, I just published version 1.0.4, so it should definitely work now.
Hi there!
We happen to use this library in one of our projects (nice job btw 👍 ), but I did notice something that doesn't jive with the latest versions of React Native.
I see your
package.json
locks downreact
andreact-native
to specific versions of both. Unfortunately, when trying to run this with the latest version of RN, it will cause issues. You'll get a weird RSOD that seems to indicate thatActivityIndicator
can't be resolved, assuming you import it in fromreact-native
.The reason for this is because this library pulls in RN 0.40 on top of my actual version of React Native. This causes some collisions and the dependencies get jacked up. Please see this RN issue for reference: facebook/react-native#14302
In that issue, the
react-native-calendar-picker
was causing grief for that particular developer because it locked down the version of RN.I'd suggest adding a little flexibility to your package.json. Stealing from AirBnB's
react-native-maps
library, you might want to refactor your package.json by moving yourreact-native
andreact
from dependencies to peerDependencies like so:I'll submit a PR shortly for this, but thought I'd let you know.
Thank you!
The text was updated successfully, but these errors were encountered: