The library is used to open settings for platform Android and IOS, and it uses for React Native
npm install react-native-open-settings-devices
Or:
yarn add react-native-open-setting-devices
- Use to open setting platform Android and IOS
import { openSettings, ESettings } from 'react-native-open-settings-devices';
// Example
openSettings(ESettings.GENERAL);
- Use to open location service for Android
import { locationSettings } from 'react-native-open-settings-devices';
// Example
locationSettings();
- Use to check location service enable for IOS
import { checkAllowLocationServices } from 'react-native-open-settings-devices';
// Example
const openLocationSettins = async () => {
const result = await checkAllowLocationServices();
return result;
}
IOS
For IOS: https://gist.github.com/deanlyoung/368e274945a6929e0ea77c4eca345560
See the contributing guide to learn how to contribute to the repository and the development workflow.
Made with create-react-native-library