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: