react-native-device-wallpaper-manager

0.0.3 • Public • Published

react-native-device-wallpaper-manager

React Native New Architecture - device wallpaper setter library (Android only), backed with Coil and Coroutine.

  • 🐎 New Architecture
  • ⚡ Using light-weight thread
  • 🏎 Kotlin implement
  • 💥 Support from Android 7.0 (API 24)

Installation

Adding the package

npm

$ npm install react-native-device-wallpaper-manager

yarn

$ yarn add react-native-device-wallpaper-manager

.setWallpaper Props

Prop Type Description Note
destination string type of wallpaper "system", "both", "lock"
imageUri string path to image (remote or local uri are acceptable) "http://", "https://", "file://"

Example

import RTNDeviceWallpaper from 'react-native-device-wallpaper-manager/js/NativeDeviceWallpaper'

const setWallpaper=async()=>{
    await RTNDeviceWallpaper?.setWallpaper("https://example_website/example_image.png","both")
}

Demo

Alt Text

Package Sidebar

Install

npm i react-native-device-wallpaper-manager

Weekly Downloads

5

Version

0.0.3

License

MIT

Unpacked Size

178 kB

Total Files

36

Last publish

Collaborators

  • benjaminle