-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aws amplify not working with react-native and expo version 36.0.0 #5126
Comments
@Ashish-Nanda yes I do have tried installing it several times and different versions but the problem still persist |
Can you post a screenshot of your issue? What is the exact error you get? |
when I install @react-native-community/netinfo I get the error react-native-netinfo/react-native-netinfo#232 and when I install react-native-netinfo I get the error Unable to resolve module @react-native-community/netinfo from node_modules@aws-amplify\core\lib\Util\Reachability.native.js |
The issue you linked has a reply from the package maintainer with the reason for the error.
You need to install this specific version because newer versions cause issues as the API changed. Give this a try and let us know. |
Thanks so much this solved my problem |
Glad that it worked! Will go ahead and close this issue. |
after installing npm install --save @react-native-community/netinfo@4.7.0 RNCNetInfo.getCurrentState got 2 arguments, expected 3 getting this error Expo SDK 40 |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
I'm currently working on a react-native-app using expoSdk which is supposed to run on web,ios and android. The most challenging part till now has been to setup the navigation which I finally did. Now I added amplify to my project but the project stops working whenever I run it on any mobile device but it works just fine on web. The error I receive is
NetInfo has been removed from React Native
After a lot of trial and error I discovered that the error comes from aws-amplify since it seems to still run with reac-native-community/netinfo. The error only occours when I import something from amplify. I found this in
node_modules\@aws-amplify\core\lib\Util\Reachability.native.js
Deo anyone know how I can resolve this issue?
Here is my package.json if needed
Any help is much appreciated thanks.
To Reproduce
setup expo project with latest version and install aws-amplify. Then try to import say Auth or Amplify
Other errors tend to be similar to this
[(https://github.com//issues/5010)]
The text was updated successfully, but these errors were encountered: