rn-location-popup
v0.1.0
Published
pop up for location access
Readme
rn-location-popup
A React Native library to check and prompt for enabling location services on Android.
Installation
npm install rn-location-popupUsage
import { isLocationEnabled, promptForEnableLocation } from 'rn-location-popup';
// ...
const checkLocation = async () => {
const enabled = await isLocationEnabled();
if (!enabled) {
const result = await promptForEnableLocation();
console.log(result);
}
};Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
