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