npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rn-expo-wallpaper-manager

v0.1.2

Published

A native module for react native expo to manager wallpaper

Readme

React Native Wallpaper Manager

A React Native Expo module for setting wallpapers on Android devices.

Features

  • Set wallpaper from URL
  • Set wallpaper from local file path
  • Support for different wallpaper types (home screen, lock screen, or both)
  • Check device wallpaper support capabilities
  • Event notifications when wallpaper changes

Installation

npm install rn-expo-wallpaper-manager

Usage

Basic Usage

import RnExpoWallpaperManager from 'rn-expo-wallpaper-manager';

// Check if wallpaper setting is supported
const isSupported = RnExpoWallpaperManager.isWallpaperSettingSupported();

// Set wallpaper from URL
const result = await RnExpoWallpaperManager.setWallpaperFromUrl(
  'https://example.com/image.jpg',
  'both' // 'home', 'lock', or 'both'
);

// Set wallpaper from local file
const result = await RnExpoWallpaperManager.setWallpaperFromFile(
  '/path/to/local/image.jpg',
  'home'
);

// Get wallpaper capabilities
const info = await RnExpoWallpaperManager.getCurrentWallpaperInfo();

Event Listening

import { useEvent } from 'expo';

const onWallpaperChanged = useEvent(RnExpoWallpaperManager, 'onWallpaperChanged');

// The event will be triggered when wallpaper is successfully set
console.log('Wallpaper changed:', onWallpaperChanged);

API Reference

Methods

setWallpaperFromUrl(url: string, wallpaperType: WallpaperType): Promise<WallpaperResult>

Sets wallpaper from a remote URL.

  • url: The URL of the image to set as wallpaper
  • wallpaperType: 'home', 'lock', or 'both'
  • Returns: Promise with success status and message

setWallpaperFromFile(filePath: string, wallpaperType: WallpaperType): Promise<WallpaperResult>

Sets wallpaper from a local file path.

  • filePath: The local file path of the image
  • wallpaperType: 'home', 'lock', or 'both'
  • Returns: Promise with success status and message

isWallpaperSettingSupported(): boolean

Checks if wallpaper setting is supported on the current device.

  • Returns: boolean indicating support

getCurrentWallpaperInfo(): Promise<WallpaperInfo>

Gets information about wallpaper capabilities.

  • Returns: Promise with wallpaper support information

Types

type WallpaperType = 'home' | 'lock' | 'both';

type WallpaperResult = {
  success: boolean;
  message: string;
};

type WallpaperInfo = {
  homeScreenSupported: boolean;
  lockScreenSupported: boolean;
};

type WallpaperChangedEventPayload = {
  success: boolean;
  url?: string;
  filePath?: string;
  type: string;
};

Permissions

The module requires the following Android permissions (automatically included):

  • android.permission.SET_WALLPAPER
  • android.permission.READ_EXTERNAL_STORAGE
  • android.permission.WRITE_EXTERNAL_STORAGE

Platform Support

  • ✅ Android (fully supported)
  • ❌ iOS (not supported - iOS doesn't allow apps to set wallpapers)
  • ❌ Web (not supported - web browsers can't set system wallpapers)

Example

See the example/ directory for a complete working example.

License

MIT