From b5789e91e747c796c71dc5e9921d37799c0038b8 Mon Sep 17 00:00:00 2001 From: Szymon Rybczak Date: Wed, 22 May 2024 23:51:29 +0200 Subject: [PATCH] fix: add missing icons to supported platforms (#4128) --- website/src/theme/Icon/VisionOS/index.js | 24 ++++++++++++++++++ website/src/theme/Icon/Windows/index.js | 25 +++++++++++++++++++ website/src/theme/PlatformSupport/index.js | 14 ++++++++--- .../get-started-without-a-framework.md | 2 +- 4 files changed, 61 insertions(+), 4 deletions(-) create mode 100644 website/src/theme/Icon/VisionOS/index.js create mode 100644 website/src/theme/Icon/Windows/index.js diff --git a/website/src/theme/Icon/VisionOS/index.js b/website/src/theme/Icon/VisionOS/index.js new file mode 100644 index 00000000000..9277cb3fe7d --- /dev/null +++ b/website/src/theme/Icon/VisionOS/index.js @@ -0,0 +1,24 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import React from 'react'; + +export default function VisionOS() { + return ( + + + + ); +} diff --git a/website/src/theme/Icon/Windows/index.js b/website/src/theme/Icon/Windows/index.js new file mode 100644 index 00000000000..6b10de5787d --- /dev/null +++ b/website/src/theme/Icon/Windows/index.js @@ -0,0 +1,25 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import React from 'react'; + +export default function Windows() { + return ( + + + + + + + + ); +} diff --git a/website/src/theme/PlatformSupport/index.js b/website/src/theme/PlatformSupport/index.js index 8140f1ed0af..6dc398a0889 100644 --- a/website/src/theme/PlatformSupport/index.js +++ b/website/src/theme/PlatformSupport/index.js @@ -11,6 +11,8 @@ import styles from './styles.module.css'; import Badge from '@site/src/theme/Badge'; import Android from '@site/src/theme/Icon/Android'; import Apple from '@site/src/theme/Icon/Apple'; +import VisionOS from '@site/src/theme/Icon/VisionOS'; +import Windows from '@site/src/theme/Icon/Windows'; import TV from '@site/src/theme/Icon/TV'; import Web from '@site/src/theme/Icon/Web'; @@ -27,10 +29,16 @@ export default function PlatformSupport({platforms}) { } title="macOS" /> )} {platforms.includes('tv') && } title="TV" />} - {platforms.includes('watchOS') && } + {platforms.includes('watchOS') && ( + } title="watchOS" /> + )} {platforms.includes('web') && } title="Web" />} - {platforms.includes('windows') && } - {platforms.includes('visionOS') && } + {platforms.includes('windows') && ( + } title="Windows" /> + )} + {platforms.includes('visionOS') && ( + } title="visionOS" /> + )} ); diff --git a/website/versioned_docs/version-0.74/get-started-without-a-framework.md b/website/versioned_docs/version-0.74/get-started-without-a-framework.md index 450fe5e0cb6..d31d751c131 100644 --- a/website/versioned_docs/version-0.74/get-started-without-a-framework.md +++ b/website/versioned_docs/version-0.74/get-started-without-a-framework.md @@ -11,7 +11,7 @@ import PlatformSupport from '@site/src/theme/PlatformSupport'; import RemoveGlobalCLI from './\_remove-global-cli.md'; - + If you have constraints that are not served well by a [Framework](/architecture/glossary#react-native-framework), or you prefer to write your own Framework, you can create a React Native app without using a Framework.