CursorReactGeneral AI
React Native Expo Rules
const reactNativeExpoBestPractices = [
.cursorrules
// React Native Expo .cursorrules // React Native Expo best practices const reactNativeExpoBestPractices = [ "Use functional components with hooks", "Utilize Expo SDK features and APIs", "Implement proper navigation using Expo Router", "Use Expo's asset system for images and fonts", "Implement proper error handling and crash reporting", "Utilize Expo's push notification system", ]; // Folder structure const folderStructure = ` assets/ src/ components/ screens/ navigation/ hooks/ utils/ App.js app.json `; // Additional instructions const additionalInstructions = ` 1. Use TypeScript for type safety 2. Implement proper styling using StyleSheet 3. Utilize Expo's vector icons 4. Use Expo's secure store for sensitive data 5. Implement proper offline support 6. Follow React Native best practices for performance 7. Use Expo's OTA updates for quick deployments `;
How to use with Cursor
Create a `.cursorrules` file in your project root and paste these rules. Cursor reads this automatically on every AI interaction.
#cursor#react-native#react#ai-coding-rules
Related Rules
Python Cursor Rules
CursorPython
Best Cursor AI coding rules for Python development. Enforce type hints, PEP 8, Pythonic patterns, and modern Python best practices in your .cursorrules file.
Code Style
python · type-hintsCopy Ready
TypeScript Cursor Rules
CursorTypeScript
Cursor rules for TypeScript: enforce strict mode, eliminate any types, and write type-safe code with these .cursorrules configurations.
Code Style
typescript · strictCopy Ready
React Cursor Rules
CursorReact
Cursor rules for React: component patterns, hooks best practices, performance optimization, and clean state management conventions.
Architecture
react · hooksCopy Ready
Next.js Cursor Rules
CursorNext.js
Cursor rules for Next.js App Router: server components, data fetching, routing, and deployment best practices.
Architecture
nextjs · app-routerCopy Ready