npm install react-native-wallpaper-manage
# OR
yarn add react-native-wallpaper-manage
import WallpaperManager, {TYPE} from "react-native-wallpaper-manage";
// ...
const result = WallpaperManager.setWallpaper(URL, TYPE.FLAG_LOCK)
Prop | Default | Type | Description |
---|---|---|---|
TYPE | FLAG_SYSTEM | enum |
FLAG_LOCK : the lock-screen-specific wallpaper. FLAG_SYSTEM : the system wallpaper. |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT