This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Save your creation
Edit page
In this chapter, direct your AI agent to save the decorated photo to your phone, and optionally make it work in the browser too.
In this chapter, you'll add the final core feature: saving the photo, sticker and all, to your phone's photo library.
1
Save to your photo library
Paste the following prompt into your agent:
What you should see: tapping Save asks for permission to save to your photos the first time. Tap Allow, and the app shows a confirmation. Open your phone's photo gallery: your photo is there with the sticker baked in, ready to share anywhere.
2
Make it work on the web (optional)
Your app isn't only a phone app. The same project runs in a web browser. In the terminal window running the development server, press W and the app opens in your browser. Everything works, except Save: the library that captures the image on phones doesn't work on the web.
Want to fix the Save option on the web?
Paste the following prompt into your agent:
What you should see: in the browser, pick a photo, add a sticker, and click Save. The image downloads as a file. This is how platform differences are handled in Expo apps: one app, with small platform-specific branches where needed.
If a result doesn't match what you expected, tell the agent what you see. The When something looks wrong section has the playbook.
Summary
Chapter 5: Save your creation
StickerSmash is feature-complete: pick a photo, smash a sticker on it, and save the result, on your phone and even in the browser. One chapter to go.
In the next chapter, you'll polish the status bar, splash screen, and app icon, and take your next steps.