Try this. Open Claude Code, Cursor or Codex in a fresh Expo project and type:
Build a sign-in screen.
I'd bet you get this:
It works. It also looks like every other app the agent has built.
This post is a hands-on take on Why your AI agent's mobile screens all look the same by Sanket Sahu on the gluestack blog.
An LLM writes the most likely code for your request. Give it nothing specific to aim at and the most likely screen is the average of every screen it has seen. On mobile there are a lot of decisions the prompt never mentions: insets, gestures, press feedback, scroll behavior, motion timing, a second color theme. The agent picks the default for each one. Stack enough defaults and you get "generic."
1. Longer prompts. Writing "modern, clean, soft gradient, subtle animations" just gives the model more adjectives to read in the safest possible way, and none of them pins down spacing, hierarchy or timing.
2. Screenshots alone. A screenshot is one frame in one theme. Motion, press states, component structure and dark mode are all lost, so the agent guesses them.
3. A UI kit on its own. A component library gives the agent good buttons and inputs, but not a screen. Arrange good parts in an average layout and you still get an average screen.
Paste a complete, finished screen into the prompt: real layout, spacing, animations, insets and both palettes. The agent stops guessing and starts adapting, which is what it's actually good at.
Here's the kind of detail a reference carries that a text prompt never does. Compare a typical agent output:
// What you usually get
export default function SignIn() {
return (
<SafeAreaView style={styles.container}>
<View style={styles.card}>
<Text style={styles.title}>Sign in</Text>
{/* inputs */}
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Continue</Text>
</TouchableOpacity>
</View>
</SafeAreaView>
);
}
…with a reference-quality version of the same pieces:
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import Animated, {
FadeInDown,
useAnimatedStyle,
useSharedValue,
withSpring,
} from 'react-native-reanimated';
import { Pressable, useColorScheme } from 'react-native';
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
const SPRING = { damping: 15, stiffness: 300 };
function PrimaryButton({ label, onPress }) {
const scale = useSharedValue(1);
const pressStyle = useAnimatedStyle(() => ({
transform: [{ scale: scale.value }],
}));
return (
<AnimatedPressable
onPressIn={() => (scale.value = withSpring(0.96, SPRING))}
onPressOut={() => (scale.value = withSpring(1, SPRING))}
onPress={onPress}
style={[styles.button, pressStyle]}
>
<Text style={styles.buttonText}>{label}</Text>
</AnimatedPressable>
);
}
export default function SignIn() {
const insets = useSafeAreaInsets();
const scheme = useColorScheme();
const palette = scheme === 'dark' ? dark : light;
const containerStyle = [
styles.container,
{ paddingTop: insets.top + 24, paddingBottom: insets.bottom + 16 },
{ backgroundColor: palette.background },
];
return (
<View style={containerStyle}>
<Animated.View entering={FadeInDown.duration(350)}>
{/* heading, inputs ... */}
</Animated.View>
<PrimaryButton label="Continue" onPress={handleSignIn} />
</View>
);
}
Spring values, entry timing, the edges that read insets, and a palette per theme are all things an agent will keep if they're in the code and drop if they're only described in adjectives.
Here's the five-part checklist from the original post, turned into a prompt:
Build the [screen name] screen.
1. REFERENCE
Use this screen as the design reference. Keep its layout,
spacing, hierarchy and animations:
[paste the reference screen code, or a screenshot plus a
description of the motion]
2. STATES
Handle: , empty, error, success, a very long name,
a missing image.
3. THEMES
Design both light and dark. Colors come from [your tokens /
your theme hook], not hardcoded values.
4. SAFE AREAS
The screen draws edge to edge. Read insets with
useSafeAreaInsets instead of wrapping everything in
SafeAreaView. Respect the notch, the home indicator and
the keyboard.
5. MOTION
Content fades in on mount (~300ms). Buttons spring on
press. The header [collapses / gains a border] on scroll.
Match my project's components, theme and conventions.
Don't skip that last line. When the gluestack team tested this with Claude Code, the agent kept the reference screen's own styles unless that line was there. The reference tells the agent what to build; the last line tells it to make the result yours.
They ran the same reference screen through Claude Code in three projects (November 28–29, 2026):
| Project | What the agent did |
|---|---|
| NativeWind app | Rewrote the screen as Tailwind classes on the project's color tokens |
| Plain Expo app + custom theme | Used the project's useTheme hook andThemedText component |
| gluestack-ui app | Used gluestack's Input ,Button andHeading with the project's tokens |
The design came from the reference, and the fit came from the agent.
You can write your own (your best existing screen is a great reference for the rest of your app), or grab one from gluestack's screen catalog. Each screen is one plain React Native file with Reanimated motion, safe-area insets and its own light/dark palette, plus a ready-made agent prompt. Free screens run live on their pages, so you can see the motion first.
🚀 gluestack is launching on Product Hunt tomorrow (December 3). If you've ever fought your agent over a bland screen, look for gluestack on Product Hunt and share your feedback there.
What's the most "AI-looking" screen your agent has handed you? Drop it in the comments 👇