For a small difference in a shared component, use Platform.select or a guarded Platform.OS branch: const paddingTop = Platform.select({ ios: 24, android: 12, default: 12 }); Keep the shared style in StyleSheet.create and use the platform value only for the actual difference. Prefer feature detection over hardcoded OS-version checks, and verify the result on both platforms.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of React Native Platform Specific?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-react-native-platform-specific-agent-skills-standard)
For a small difference in a shared component, use Platform.select or a guarded Platform.OS branch:
const paddingTop = Platform.select({ ios: 24, android: 12, default: 12 });
Keep the shared style in StyleSheet.create and use the platform value only for the actual difference. Prefer feature detection over hardcoded OS-version checks, and verify the result on both platforms.