Add React Native Expo Router TypeScript Windows .cursorrules File #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add React Native Expo Router TypeScript Windows .cursorrules File
This pull request introduces a
.cursorrules
file designed for a React Native Expo project utilizing Expo Router, TypeScript, and development on Windows. It provides detailed guidelines and best practices tailored to this setup, ensuring consistency and addressing specific library configurations and issues.Key Highlights:
Best Practices
StyleSheet
andNativeWind
, asset management with Expo's asset system, and push notification integration.Folder Structure
assets/ src/ components/ screens/ hooks/ utils/ app/ _layout.tsx index.tsx
Specific Library Compatibility Notes
[email protected]
and[email protected]
due to known issues with higher versions (e.g., "process(css).then(cb)" errors).nativewind/babel
in the Babel plugins array:react-native-reanimated/plugin
followingnativewind/babel
.jsxImportSource
in presets.Additional Instructions
Details PowerShell commands for project management:
Checking installed packages:
Renaming/moving files:
Listing directory structures:
Encourages using Expo's official libraries and upgrading with Expo commands:
expo upgrade <package-name>
Provides practical tips for maintaining project scalability and readability.
Summary
This
.cursorrules
file directly addresses common setup challenges for projects usingnativewind
,tailwindcss
, and Expo Router, ensuring developers can resolve issues efficiently and maintain a clean, organized codebase.