# rn-write-settings

> React native manager for the WRITE_SETTINGS android permission

Latest version **1.1.1** (published 2018-09-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install rn-write-settings
pnpm add rn-write-settings
yarn add rn-write-settings
bun add rn-write-settings
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2018-09-25 |
| First published | 2018-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Afonso Delgado |
| Maintainers | afonsodelgado |
| Keywords | react-native, write-settings, permission, android |

## Links

- npm: https://www.npmjs.com/package/rn-write-settings
- Repository: https://github.com/afonsodelgado/rn-write-settings
- Homepage: https://github.com/afonsodelgado/rn-write-settings#readme
- Issues: https://github.com/afonsodelgado/rn-write-settings/issues
- npm.io page: https://npm.io/package/rn-write-settings

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2018-09-25
- 1.1.0 — 2018-09-25
- 1.0.0 — 2018-09-24

## README

# rn-write-settings

## Getting started

`$ npm install rn-write-settings --save`

### Mostly automatic installation

`$ react-native link rn-write-settings`

### Manual installation

#### Android

1. Open up `android/app/src/main/java/[...]/MainApplication.java`
  - Add `import com.reactlibrary.RNWriteSettingsPackage;` to the imports at the top of the file
  - Add `new RNWriteSettingsPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':rn-write-settings'
  	project(':rn-write-settings').projectDir = new File(rootProject.projectDir, 	'../node_modules/rn-write-settings/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':rn-write-settings')
  	```

## Permissions
  * Open up `android/app/src/main/AndroidManifest.xml` and add the `WRITE_SETTINGS` permission.
  ```xml
  <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
  ```

## Usage
```javascript
import RNWriteSettings from 'rn-write-settings';

// A system window for the user configure this permission should appear.
RNWriteSettings.checkPermission();
```

---
_Source: https://npm.io/package/rn-write-settings · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
