React native wallpaper manager
npm install @codeooze/react-native-wallpaper-manager
sh
npm install @codeooze/react-native-wallpaper-manager
`
React Native 0.59 and below
Run npx react-native link @codeooze/react-native-wallpaper-manager to link the library.
Usage
`js
import *as React from 'react';
import { applyWallpaper } from '@codeooze/react-native-wallpaper-manager';
const App = () => {
// ...
const setWallpaper = (uri, screen) => {
//uri = "https://i.pinimg.com/originals/76/5e/1d/765e1dc8cb1cc115fb3b0b39a895fdeb.jpg"
//screen = "home" || "lock" || "both"
applyWallpaper(uri, screen)
.then((response) => { Alert.alert(response) })
.catch((error) => { Alert.alert(error.message) })
}
// ...
}
``