import Geolocation from '@react-native-community/geolocation';
useEffect(() => {
console.log(Geolocation);
}, []);
error occurre
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: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
How I tried to fix the error
1.
react-native start --reset-cache
2.
Project > iOS > Podfile add
pod 'react-native-geolocation', path: '../node_modules/@react-native-community/geolocation'
I tried these methods but couldn't solve it.
Any help would be appreciated.
version information
command I entered
additional settings
android
AndroidManifest.xml
ios
info.plist
React Native Code
error occurre
How I tried to fix the error
1.
I tried these methods but couldn't solve it. Any help would be appreciated.