react-native-device-wallpaper-manager
v0.0.3
Published
React Native New Architecture - device wallpaper setter library (Android only), backed with Coil and Coroutine
Downloads
28
Maintainers
Readme
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")
}