1.0.8 • Published 6 months ago

react-native-wallpaper-util v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

React Native Wallpaper Utility Function

This utility function provides a simple way to set wallpapers on your React Native application. It is an enhanced version based on the work of Ajay Bhatia, who originally created the react-native-wallpaper-manager library. The original repository is currently not maintained and lacks TypeScript support.

Installation

You can install this package via npm:

npm install react-native-wallpaper-util

Usage

Here's how you can use the setWallpaper function to set wallpapers:

import { setWallpaper } from "react-native-wallpaper-util";

// Define the image source and callback function
const imageSource = {
  uri: "your-image-uri",
  screen: "HOME", // or "LOCK", or "BOTH"
};

const callback = () => {
  console.log("Wallpaper set successfully.");
};

// Set the wallpaper
setWallpaper(imageSource, callback);

Platform-Specific FAQs

Platform Compatibility

  • This package is designed for Android OS and is not compatible with iOS.

Expo Compatibility

  • This package can be used with Expo, but please note that it will only work when you use the development client or build a standalone APK.
  • It will not work with the Expo Go app.

Credits

##License This package is open-source and available under the MIT License.

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago