# rn-wallpaper-manager

> It is a library to set wallpaper to home screen.

Latest version **1.0.4** (published 2020-03-12) · 0 weekly downloads

## Install

```sh
npm install rn-wallpaper-manager
pnpm add rn-wallpaper-manager
yarn add rn-wallpaper-manager
bun add rn-wallpaper-manager
```

## 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.0.4 |
| Published | 2020-03-12 |
| First published | 2020-03-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 66.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kaushal Marakana |
| Maintainers | kaushalmarakana |
| Keywords | react-native, react-native-setwallpaper, react-native-wallpaper |

## Links

- npm: https://www.npmjs.com/package/rn-wallpaper-manager
- Repository: https://github.com/kaushalmarakana/rn-wallpaper-manager
- Homepage: https://github.com/kaushalmarakana/rn-wallpaper-manager#readme
- Issues: https://github.com/kaushalmarakana/rn-wallpaper-manager/issues
- npm.io page: https://npm.io/package/rn-wallpaper-manager

## Recent versions

- 1.0.4 (latest) — 2020-03-12
- 1.0.3 — 2020-03-02

## README

# rn-wallpaper-manager
1. A library for set wallpaper as Home Screen wallpaper
2. Currently Only Supports on ANDROID Platform

## Getting started

`$ npm install rn-wallpaper-manager --save`

### Mostly automatic installation (If react-native < 0.60)

`$ react-native link rn-wallpaper-manager`

### Manual installation

<!-- #### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `rn-wallpaper-manager` and add `RNWallPaperManager.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNWallPaperManager.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`) -->

#### Android

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

## Usage
```javascript
import RNWallPaperManager from 'rn-wallpaper-manager';

// TODO: What to do with the module?
try{
  await RNWallPaperManager.setAsWallpaper(Url);
} catch(err) {
  // handle error here
}
```

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