michalchudziak / react-native-geolocation

Geolocation APIs for React Native
MIT License
1.28k stars 220 forks source link

How do I fix the '@react-native-community/geolocation' linking error on IOS using Expo bare workflow? #256

Closed Taladkbp closed 1 year ago

Taladkbp commented 1 year ago

I npm installed @react-native-community/geolocation to use on my app. I followed the documentation to give permission in the manifest file and the info.plist. It works perfectly fine on android but i get this linking error on IOS. The issue arises right when i import the library, not using yet. I am using expo bare workflow.

I have ran pod install, rebuilt my app just like suggested but the issue is still there only for IOS. I have tried 2 other libraries, expo location and react-native-background-location. They both have linking issues too.

Error

ERROR Error: The package '@react-native-community/geolocation' doesn't seem to be linked. Make sure:

Platforms

This issue is only on IOS, it works fine on Android

Versions

michalchudziak commented 1 year ago

Make sure the module is linked properly, you can read more about auto linking here. Closing