react-native-location-status

0.2.0 • Public • Published

react-native-location-status

Checks if location is enabled on the device

Joseph Hale's software engineering blog

Installation

npm install react-native-location-status

Usage

import { isLocationEnabled } from 'react-native-location-status';

// ...

const result = await isLocationEnabled(); // `true` or `false` (Android only)

NOTE: iOS is not supported. Calling isLocationEnabled() on iOS will always return false.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MPL-2.0


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-location-status

Weekly Downloads

0

Version

0.2.0

License

MPL-2.0

Unpacked Size

53.6 kB

Total Files

45

Last publish

Collaborators

  • thehale