Add gluestack-ui cursorrules under Mobile Development#297
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (2)
📝 WalkthroughWalkthroughAdds a new Cursor rules prompt file for gluestack-ui v4 with styling/component conventions, compound component patterns, cross-platform constraints, tva variant guidance, accessibility/anti-patterns, and a README Mobile Development entry linking to the rule. Changesgluestack-ui v4 Cursor Rules Addition
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Actionable comments posted: 0 |
|
Actionable comments posted: 0 |
|
Actionable comments posted: 0 |
Add gluestack-ui cursorrules
Adds a
.mdcrule for gluestack-ui, the copy-paste universal component library for React Native, Expo, and Next.js styled with NativeWind. The rule is adapted from the official gluestack/agent-skills repo (MIT-licensed) and translated into the Cursor Project Rules format.The rule covers patterns I've found agents (Cursor and Claude Code) consistently miss when working on gluestack-ui codebases:
size/variant/spaceprop would do.bg-primary,text-foreground,bg-card,border-border. Agents frequently fall back to raw Tailwind colors liketext-blue-600or legacy tokens liketext-typography-700.<ButtonText>,<InputField>,FormControlcluster. Critical rule:<InputIcon>MUST be wrapped in<InputSlot>— agents put it directly inside<Input>by default.components/ui/, notnode_modules. Don't import from the legacy@gluestack-ui/themedpackage.npx gluestack-ui@alpha init,add),GluestackUIProviderrequirement, doc URL pattern (https://gluestack.io/ui/docs/components/${componentName}/).Pressable, FlatList for lists, Reanimated for animations.Added under
### Mobile Development(alphabetical position between Flutter and HarmonyOS), since RN is the primary use case.Format follows the modern Cursor Project Rules spec —
description,globs,alwaysApplyfrontmatter — per CONTRIBUTING.md.Summary by CodeRabbit
Documentation
Chores