Instruction file imported from ivanshtokov/copilot-kit (
.github/instructions/mobile.instructions.md). Copyright stays with the author.
Mobile Development Standards
๐ฏ Before Any Mobile Work
READ: .github/skills/mobile-design/SKILL.md
๐ฑ Platform Detection
| Files | Platform |
|---|---|
*.swift, ios/ |
iOS (SwiftUI/UIKit) |
*.kt, android/ |
Android (Kotlin/Compose) |
*.dart, lib/ |
Flutter |
*.tsx + app.json |
React Native |
๐ฏ Touch Targets
- iOS: Minimum 44pt ร 44pt
- Android: Minimum 48dp ร 48dp
- Spacing: 8px+ between targets
โก Performance Rules
Lists (CRITICAL)
| โ Don't | โ Do |
|---|---|
| ScrollView for lists | FlatList/ListView.builder |
| Inline render functions | Memoized components |
| Index as key | Unique stable ID |
Animations
- Use native driver (
useNativeDriver: true) - Animate only
transformandopacity - Avoid animating
width,height,margin
๐ Security
- Use SecureStore/Keychain for tokens
- Never hardcode API keys
- Enable SSL pinning in production
- Don't log sensitive data
๐งช Testing
- Unit test business logic
- Integration test API calls
- E2E test critical user flows
- Test on real devices