You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,40 @@ Android API >= 18 Positions will also contain a `mocked` boolean to indicate if
72
72
Failure to do so may result in a hard crash.
73
73
</p>
74
74
75
+
<details>
76
+
<summary><b>For React Native < 0.65 on Android we need to link manually</b></summary>
77
+
78
+
79
+
- android/settings.gradle
80
+
```
81
+
include ':react-native-community-geolocation'
82
+
project(':react-native-community-geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/geolocation/android')
// Packages that cannot be autolinked yet can be added manually here, for example:
103
+
packages.add(newGeolocationPackage()); // <== add this line
104
+
return packages;
105
+
}
106
+
```
107
+
</details>
108
+
75
109
## Migrating from the core `react-native` module
76
110
This module was created when the Geolocation was split out from the core of React Native. As a browser polyfill, this API was available through the `navigator.geolocation` global - you didn't need to import it. To migrate to this module you need to follow the installation instructions above and change following code:
0 commit comments