From 5b4e616da1d7cbe6a680fce872410a4d1c4818ab Mon Sep 17 00:00:00 2001 From: Anurag Pramanik Date: Sun, 3 May 2026 00:59:00 +0530 Subject: [PATCH] fix: remove unused PlatformTag component and clean up platform labels in documentation --- docs/platform-specific-code.md | 4 ++-- website/core/PlatformTag.tsx | 14 -------------- .../version-0.85/platform-specific-code.md | 4 ++-- 3 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 website/core/PlatformTag.tsx diff --git a/docs/platform-specific-code.md b/docs/platform-specific-code.md index 0f688f196d6..be82102e987 100644 --- a/docs/platform-specific-code.md +++ b/docs/platform-specific-code.md @@ -72,7 +72,7 @@ const Component = Platform.select({ ; ``` -### Detecting the Android version
Android
+### Detecting the Android version
Android
On Android, the `Platform` module can also be used to detect the version of the Android Platform in which the app is running: @@ -86,7 +86,7 @@ if (Platform.Version === 25) { **Note**: `Version` is set to the Android API version not the Android OS version. To find a mapping please refer to [Android Version History](https://en.wikipedia.org/wiki/Android_version_history#Overview). -### Detecting the iOS version
iOS
+### Detecting the iOS version
iOS
On iOS, the `Version` is a result of `-[UIDevice systemVersion]`, which is a string with the current version of the operating system. An example of the system version is "10.3". For example, to detect the major version number on iOS: diff --git a/website/core/PlatformTag.tsx b/website/core/PlatformTag.tsx deleted file mode 100644 index 92750517b1d..00000000000 --- a/website/core/PlatformTag.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react'; - -const PlatformTag = ({platform}) => { - const platformLabel = platform === 'ios' ? 'iOS' : 'Android'; - return ( -
- {platformLabel} -
- ); -}; - -export default PlatformTag; diff --git a/website/versioned_docs/version-0.85/platform-specific-code.md b/website/versioned_docs/version-0.85/platform-specific-code.md index 0f688f196d6..be82102e987 100644 --- a/website/versioned_docs/version-0.85/platform-specific-code.md +++ b/website/versioned_docs/version-0.85/platform-specific-code.md @@ -72,7 +72,7 @@ const Component = Platform.select({ ; ``` -### Detecting the Android version
Android
+### Detecting the Android version
Android
On Android, the `Platform` module can also be used to detect the version of the Android Platform in which the app is running: @@ -86,7 +86,7 @@ if (Platform.Version === 25) { **Note**: `Version` is set to the Android API version not the Android OS version. To find a mapping please refer to [Android Version History](https://en.wikipedia.org/wiki/Android_version_history#Overview). -### Detecting the iOS version
iOS
+### Detecting the iOS version
iOS
On iOS, the `Version` is a result of `-[UIDevice systemVersion]`, which is a string with the current version of the operating system. An example of the system version is "10.3". For example, to detect the major version number on iOS: