What problem does it solve?
It solves the problem of React Native apps behaving inconsistently across iOS and Android by giving you structured patterns for platform-specific behavior without brittle ad-hoc checks.
Core Features & Use Cases
- Platform detection & branching: Use
Platform.OS, Platform.Version, and Platform.select to apply correct logic and styling per platform.
- Platform-specific files & components: Implement
Component.ios.tsx, Component.android.tsx, and shared Component.tsx so React Native automatically resolves the right implementation.
- Native-adjacent UI & behavior: Configure platform-specific UI elements (StatusBar, Touchable differences), permissions handling, and Android back button behavior.
- Common cross-platform pitfalls: Handle Safe Areas correctly, avoid styling-only platform checks, and safely check feature support before using platform linking.
Quick Start
Use the react-native-platform skill to restructure your existing component so iOS and Android each use their own implementation files where necessary, while shared logic and adaptive styling stay in the common module.