Mobile Framework Cursor Rules for iOS and Android Development
Master cursor rules for React Native, Flutter, Swift, and Kotlin. Platform-specific best practices for efficient cross-platform and native mobile development.
📱 Mobile Framework Cursor Rules
What Are Mobile Framework Cursor Rules?
Mobile framework cursor rules provide AI with platform-specific knowledge to help you navigate, generate, and refactor code for iOS and Android development. These rules understand the unique patterns, APIs, and conventions of mobile frameworks, enabling smarter code assistance for both cross-platform and native mobile development.
Platform-Aware Navigation
Navigate between iOS and Android platform-specific code with understanding of native modules and bridge implementations.
UI Component Understanding
Work with native UI components, widgets, and views using framework-specific patterns for SwiftUI, Compose, and React Native.
State Management Patterns
Navigate app state with understanding of Redux, Provider, Riverpod, Combine, and Kotlin Flow patterns.
Native API Integration
Work seamlessly with platform APIs, permissions, sensors, and device capabilities across iOS and Android.
Performance Optimization
Apply mobile-specific optimizations including memory management, battery efficiency, and rendering performance.
Testing & Debugging
Generate and navigate tests using XCTest, Espresso, Jest, and framework-specific testing tools for mobile apps.
Supported Mobile Frameworks
React Native
Build cross-platform mobile apps with React patterns, native modules, and platform-specific code for iOS and Android.
Flutter
Create native mobile apps with Dart, widget composition, Material Design, and platform channels for custom functionality.
Swift
Develop native iOS apps with SwiftUI, UIKit integration, Combine framework, and access to the full iOS SDK ecosystem.
Kotlin
Build modern Android apps with Jetpack Compose, coroutines, Android architecture components, and Material Design 3.
Common Features
Cross-Platform Navigation
- Navigate between platform-specific code
- Smart component/widget traversal
- State and prop management
- Native module integration
Code Manipulation
- Framework-specific refactoring
- Smart component generation
- Native bridge handling
- Platform-specific optimizations
Best Practices
-
Platform-Specific Patterns
- Use platform-aware navigation
- Handle native integrations properly
- Follow platform conventions
- Implement proper error handling
-
Performance Optimization
- Optimize rendering performance
- Handle memory efficiently
- Consider battery impact
- Implement proper caching
-
Development Experience
- Streamlined workflow
- Quick platform switching
- Enhanced productivity
- Proper debugging support
-
Testing Strategy
- Unit test components
- Integration test flows
- Platform-specific testing
- End-to-end validation
Benefits
- Consistent development patterns
- Improved code quality
- Better performance
- Easier maintenance
- Enhanced team collaboration
- Streamlined platform handling
Whether you're developing with React Native, Flutter, Swift, or Kotlin, these framework-specific guidelines will help you maintain consistent patterns and best practices across your mobile development workflow.
Related Articles
Kotlin Cursor Rules: Android Development Best Practices
Cursor rules for Kotlin and Android enforcing Jetpack Compose, coroutines, and clean architecture. Helps AI generate secure, production-ready code with context.
Java Cursor Rules: AI-Powered Development Best Practices
Cursor rules for Java development enforcing clean code standards, Spring Boot patterns, and best practices with AI assistance for production-ready applications.
Frontend Framework Cursor Rules for Modern Web Development
Master cursor rules for React, Vue, Angular, Next.js, Svelte, Qwik, and Astro. Framework-specific best practices for efficient web development workflows.