AI Assistant Home with Gradient Themes
A home screen with a three-line headline, four translucent feature cards, a pill input bar and a send button sits over 17 gradient backgrounds, each built from fitted Gaussian blobs in SVG. Pick a swatch or let them rotate.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "ai-assistant-home-with-gradient-themes" to this project. The full source is attached at the end of this prompt. Put the files under components/ai-assistant-home-with-gradient-themes/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 17 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @basit_designs on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
The home screen of an AI assistant over a full-screen gradient wallpaper. A large three-line greeting sits at the top, four translucent feature cards with small icons fill the middle in a two-by-two grid, and a pill input bar with a round send button rests at the bottom. The same screen ships with seventeen interchangeable gradient themes, such as a deep red, a coral, a moss and a lilac, selected with a theme prop. The web preview adds a swatch list, arrow-key switching and an autoplay that hard-cuts through themes.
How it's built
Each wallpaper is a base color ramp plus six or ten rotated Gaussian blobs, fitted to the reference frames with bounded least squares and stored as data. Every blob is an SVG ellipse filled with a radial gradient whose color stops come from one shared function, so react-native-svg draws them with no shader and no mesh-gradient module. A small JavaScript core holds layout constants, copy and icon paths. The component renders cards, input and send button with Pressable and SVG, takes callbacks for send and card presses, and loads its typeface with expo-font.
Good for
- A landing screen for a chat or assistant app
- Apps that let users pick a wallpaper or accent theme
- Starting point for gradient backgrounds that need no native code
Dependencies
react-native-svgexpo-font@expo-google-fonts/interreact-native