// React Native Expo .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-react-native-expo-router-typescript-windowsProvides React Native Expo configuration guidelines with specific version pinning and PowerShell workflows
1// React Native Expo .cursorrules23// React Native Expo Best Practices45const reactNativeExpoBestPractices = [6 "Use functional components with hooks.",7 "Leverage Expo SDK features and APIs.",8 "Implement navigation using Expo Router.",9 "Manage assets with Expo's asset system for images and fonts.",10 "Ensure robust error handling and crash reporting.",11 "Utilize Expo's push notification system.",12 "Adopt TypeScript for type safety.",13 "Apply consistent styling using StyleSheet.",14 "Incorporate Expo's vector icons.",15 "Secure sensitive data with Expo's SecureStore.",16 "Implement proper offline support.",17 "Optimize performance following React Native best practices.",18 "Deploy updates using Expo's OTA mechanism.",19 "Style components using NativeWind.",20];2122// Folder Structure2324const folderStructure = `25assets/26src/27 components/28 screens/29 navigation/30 hooks/31 utils/32app/33 _layout.tsx34 index.tsx35App.js36app.json37`;3839// Package Version Compatibility Notes4041const packageCompatibilityNotes = [42 "NativeWind and Tailwind CSS compatibility:",43 "- Use nativewind@2.0.11 with tailwindcss@3.3.2.",44 "- Higher versions may cause 'process(css).then(cb)' errors.",45 "- If errors occur, remove both packages and reinstall specific versions:",46 " npm remove nativewind tailwindcss",47 " npm install nativewind@2.0.11 tailwindcss@3.3.2",4849 "Babel configuration for NativeWind:",50 "- Include 'nativewind/babel' in the plugins array.",51 "- Avoid using jsxImportSource in presets.",52 "- Ensure 'react-native-reanimated/plugin' follows 'nativewind/babel'."53];5455// Additional Instructions5657const additionalInstructions = [58 "Use PowerShell for terminal commands.",59 "Before installing a new package, check if it's already installed:",60 " Get-ChildItem -Recurse -Filter package-name",61 "If installed, upgrade using:",62 " expo upgrade <package-name>",63 "or",64 " npm install <package-name>",65 "if not supported by Expo.",66 "Use PowerShell commands to manage the project, e.g., moving and renaming files:",67 " Move-Item -Path .\\old\\path\\file.txt -Destination .\\new\\path\\newname.txt",68 "If unsure about the current structure or details, use PowerShell to list out necessary information:",69 " Get-ChildItem -Recurse",70 "Utilize official Expo libraries and upgrade them using Expo's commands.",71 "Avoid deleting existing functionality or files without a valid reason.",72 "Follow the recommended folder structure and maintain organized code for scalability and readability.",73 "Implement navigation using Expo Router for clean and declarative routing."74];7576
Full transparency — inspect the skill content before installing.