Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules guiding React Native Expo Router TypeScript development on Windows

A .cursorrules file with Expo Router, TypeScript, NativeWind, and PowerShell guidance that steers Cursor's AI when building React Native apps on Windows.

People use this for

  • expo router cursor rules
  • react native expo typescript rules
  • cursorrules expo windows powershell
  • building react native apps with expo router and typescript on windows
  • setting up cursor ai guidance for expo nativewind projects
Name
cursor-rules-guiding-react-native-expo-router-typescript-develop
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-guiding-react-native-expo-router-typescript-development-on--se7g/export/mdc" -o .cursor/rules/cursor-rules-guiding-react-native-expo-router-typescript-develop.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-guiding-react-native-expo-router-typescript-develop.mdc
Manual install

Save cursor-rules-guiding-react-native-expo-router-typescript-develop.mdc as .cursor/rules/cursor-rules-guiding-react-native-expo-router-typescript-develop.mdc for this project or ~/.cursor/rules/cursor-rules-guiding-react-native-expo-router-typescript-develop.mdc for every project, then start a new session.

Rule


description: "Cursor rules for React Native Expo Router Typescript Windows." globs: */ alwaysApply: false

// React Native Expo .cursorrules

// React Native Expo Best Practices

const reactNativeExpoBestPractices = [ "Use functional components with hooks.", "Leverage Expo SDK features and APIs.", "Implement navigation using Expo Router.", "Manage assets with Expo's asset system for images and fonts.", "Ensure robust error handling and crash reporting.", "Utilize Expo's push notification system.", "Adopt TypeScript for type safety.", "Apply consistent styling using StyleSheet.", "Incorporate Expo's vector icons.", "Secure sensitive data with Expo's SecureStore.", "Implement proper offline support.", "Optimize performance following React Native best practices.", "Deploy updates using Expo's OTA mechanism.", "Style components using NativeWind.", ];

// Folder Structure

const folderStructure = assets/ src/ components/ screens/ navigation/ hooks/ utils/ app/ _layout.tsx index.tsx App.js app.json;

// Package Version Compatibility Notes

const packageCompatibilityNotes = [ "NativeWind and Tailwind CSS compatibility:", "- Use nativewind@2.0.11 with tailwindcss@3.3.2.", "- Higher versions may cause 'process(css).then(cb)' errors.", "- If errors occur, remove both packages and reinstall specific versions:", " npm remove nativewind tailwindcss", " npm install nativewind@2.0.11 tailwindcss@3.3.2",

"Babel configuration for NativeWind:", "- Include 'nativewind/babel' in the plugins array.", "- Avoid using jsxImportSource in presets.", "- Ensure 'react-native-reanimated/plugin' follows 'nativewind/babel'." ];

// Additional Instructions

const additionalInstructions = [ "Use PowerShell for terminal commands.", "Before installing a new package, check if it's already installed:", " Get-ChildItem -Recurse -Filter package-name", "If installed, upgrade using:", " expo upgrade ", "or", " npm install ", "if not supported by Expo.", "Use PowerShell commands to manage the project, e.g., moving and renaming files:", " Move-Item -Path .\old\path\file.txt -Destination .\new\path\newname.txt", "If unsure about the current structure or details, use PowerShell to list out necessary information:", " Get-ChildItem -Recurse", "Utilize official Expo libraries and upgrade them using Expo's commands.", "Avoid deleting existing functionality or files without a valid reason.", "Follow the recommended folder structure and maintain organized code for scalability and readability.", "Implement navigation using Expo Router for clean and declarative routing." ];

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.