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)
$ npm install react-native-device-wallpaper-manager
$ yarn add react-native-device-wallpaper-manager
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://" |
import RTNDeviceWallpaper from 'react-native-device-wallpaper-manager/js/NativeDeviceWallpaper'
const setWallpaper=async()=>{
await RTNDeviceWallpaper?.setWallpaper("https://example_website/example_image.png","both")
}