Please provide the following:
- SDK Version: 44
- Platforms(Android/iOS/web/all): all
- Add the appropriate “Tag” based on what Expo library you have a question on.
i search a lot about how to set phone wallpaper using expo but i didnt find any way
Please provide the following:
i search a lot about how to set phone wallpaper using expo but i didnt find any way
Hi @kotsh
It is apparently not possible for an app to set the wallpaper on iOS.
For Android there is a package called react-native-manage-wallpaper which should work in theory as long as you build with EAS Build.
I’m sorry to inform you even android package wont work with expo
that’s why I’m asking here
What makes you say it “won’t work with expo”?
EDIT: I’ve just tried it myself and it works fine. I did not need to do anything special. Just the following:
expo init WallpaperTest -t blank
cd WallpaperTest
yarn add react-native-manage-wallpaper
expo-dev-client
as per Getting Started - Expo Documentation
eas build --platform android --profile development
expo start --dev-client
And it worked fine.
If you want to build an app to submit to the app store, you just build again with:
eas build --platform android --profile production
Thank you wodin for your replay im really happy
i dont know how to run dev client on android simulator i build the app and installed but when i run it by pressing “a” at terminal its open the app and then crashes
Hmmm… I don’t know why it would crash on the emulator.
Maybe try running it on a physical device to see if it works there.
Also, maybe try running the dev client manually on the emulator by clicking on the icon after you’ve installed it and connecting to the dev server. i.e. see what happens if you do not press “a” when running the dev server.
Also, try building a preview
build and see if that crashes on the emulator or physical device.
eas build --platform android --profile preview
EDIT: The preview build is a standalone app that cannot connect to a dev server.
finally did it
Just finish read eas docs and its working thank you
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.