The package "@react-native-community/geolocation" doesn't seem to be linked. React-native version 0.72.5

386 Views Asked by At

I want to use the react-native-community/geolocation in my project. I followed this documentation on GitHub, including the editing of the AndroidManifest.xml etc..

Installing it via

npm install @react-native-community/geolocation --save

and importing it in the project via

import Geolocation from '@react-native-community/geolocation';

The error is:

enter image description here

My package.json (after uninstalling geolocation):

package.json file

I tried downgrading the geolocation library to 2.0.2; linking the module manually and following the workarounds described here. Nothing seems to work.

0

There are 0 best solutions below