meharbhutta / react-native-manage-wallpaper

Android wallpaper manager for changing wallpaper.
MIT License
20 stars 7 forks source link

TypeError: null is not an object (evaluating '_reactNative.NativeModules.ManageWallpapers.setWallpaper') #3

Closed NateyLB closed 1 year ago

NateyLB commented 4 years ago

Steps to reproduce

1.NPM install 2.Copy example use case 3.set onPress to use _setWallpaper

Expected behaviour

The app should let user set wallpaper

Actual behaviour

We get TypeError: null is not an object (evaluating '_reactNative.NativeModules.ManageWallpapers.setWallpaper') Error

Environment

react-native-manage-wallpaper

Version: npm version or "master" 6.14.4

Link to repo (highly encouraged)

https://github.com/NateyLB/randomDog

image

dev-ramij commented 4 years ago

I have same issue please provide solution

iyansr commented 4 years ago

can you console your props.dog.url ?

adityakmr7 commented 4 years ago

I am having same issue I tried to implement this to my expo app.

dev-ramij commented 4 years ago

Guys it will not work on expo app. Because setting wallpaper is done by native modules. So try to eject your expo project to react-native app. It will work 😊

meharbhutta commented 1 year ago

In one word it is not possible. In Apple devices, There is no provision for the change of iOS Screen wallpaper programmatically. The user has to do that manually through the settings or photos app. See this