Problem Statement
Which method allows writing platform-specific code in React Native?
Explanation
Platform.select() lets you define different implementations for iOS and Android. It’s commonly used when certain UI or logic should vary between platforms.
Code Solution
SolutionRead Only
const padding = Platform.select({ ios: 20, android: 10 });