I am using Expo Go, and I am creating a Wallpaper app I want to set image/wallpaper on the user's Device when the user clicks on the Set as Wallpaper Button I searched the internet and tried many packages, but nothing worked for me
I tried Packages the following packages:
liuhong1happy - react-native-wallpaper-manager
meharbhutta - react-native-manage-wallpaper
None of these solutions are working for me.
The imports give me the following warning:
Could not find a declaration file for module 'react-native-manage-wallpaper'.
Note: Now its not giving me this warning.
Now This Error is Coming
Error: Type is undefined
import {TYPE} from "react-native-manage-wallpaper
Use TYPE.HOME"
Even though I have Imported it.
Here is my attempt:
const handleSetWallpaper = () => {
ManageWallpaper.setWallpaper(
{
uri: imageSource,
},
TYPE.HOME,
);
};