0.0.3 • Published 11 months ago

react-native-device-wallpaper-manager v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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

PropTypeDescriptionNote
destinationstringtype of wallpaper"system", "both", "lock"
imageUristringpath 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