# Writing Platform Specific Code Writing platform-specific code involves using specialized techniques to implement features or UI components that behave differently on iOS and Android. React Native provides tools like the `Platform` module to detect the operating system at runtime and file extensions such as `.ios.js` or `.android.js` to separate implementation files. This approach allows developers to access native APIs unique to a single platform while maintaining a shared codebase for the rest of the application. Visit the following resources to learn more: - [@official@Platform-Specific Code](https://reactnative.dev/docs/platform-specific-code) - [@official@App Extensions](https://reactnative.dev/docs/app-extensions)