Skip to content
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

Package '@react-native-community/geolocation' doesn't seem to be linked #296

Open
Michele971 opened this issue Jan 11, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Michele971
Copy link

Michele971 commented Jan 11, 2024

Hi all!

I'm trying to use @react-native-community/geolocation inside my iOS app. I'm testing with my macOs iOS emulator and I'm getting this error:

Error: The package '@react-native-community/geolocation' doesn't seem to be linked. Make sure: 
- You have run 'pod install'
- You rebuilt the app after installing the package
- You are not using Expo managed workflow
, js engine: hermes
 ERROR  Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and AppRegistry.registerComponent wasn't called., js engine: hermes

I read some blogs about auto-link and I follow that steps (pod install, etc.). I also try to remove the package-lock.json and node-modules but I got the same error..

This is the way how I'm importing the library: import Geolocation from "@react-native-community/geolocation";.

Do you have any ideas?

@Michele971 Michele971 added the question Further information is requested label Jan 11, 2024
@EnemySTVR
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants