UNPKG

react-native-web-location

Version:

This module allows reading geolocation information from the device. Your app can poll for the current location or subscribe to location update events.

46 lines (28 loc) 2.29 kB
# react-native-web-location > 🚨 Deprecated: This package's features now exist in the `expo-location` package which tree-shakes the unused platform code for iOS and Android when it's built for web. This module allows reading geolocation information from the device. Your app can poll for the current location or subscribe to location update events. # API documentation - [Documentation for the master branch](https://github.com/expo/expo/blob/master/docs/pages/versions/unversioned/sdk/location.md) - [Documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/location/) # Installation in managed Expo projects For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](#api-documentation). If you follow the link and there is no documentation available then this library is not yet usable within managed projects &mdash; it is likely to be included in an upcoming Expo SDK release. # Installation in bare React Native projects For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/unimodules/react-native-unimodules) before continuing. ### Add the package to your npm dependencies ``` expo install expo-location ``` # Contributing Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing). ## License The source code is made available under the [MIT license](https://github.com/expo/expo/blob/master/LICENSE). Some of the dependencies are licensed differently, with the BSD license, for example. <!-- Footer --> --- <p> <a aria-label="sponsored by expo" href="http://expo.io"> <img src="https://img.shields.io/badge/SPONSORED%20BY%20EXPO-4630EB.svg?style=for-the-badge" target="_blank" /> </a> <a aria-label="react-native-web-location is free to use" href="https://github.com/expo/expo/blob/master/LICENSE" target="_blank"> <img align="right" alt="License: MIT" src="https://img.shields.io/badge/License-MIT-success.svg?style=for-the-badge&color=33CC12" target="_blank" /> </a> </p>