diff --git a/apps/fluent-tester/src/FluentTester/TestComponents/Button/ButtonIconTest.tsx b/apps/fluent-tester/src/FluentTester/TestComponents/Button/ButtonIconTest.tsx index 401a5d5b1b..e64cb26dc4 100644 --- a/apps/fluent-tester/src/FluentTester/TestComponents/Button/ButtonIconTest.tsx +++ b/apps/fluent-tester/src/FluentTester/TestComponents/Button/ButtonIconTest.tsx @@ -4,7 +4,7 @@ import { Stack } from '@fluentui-react-native/stack'; import * as React from 'react'; import { Platform, View } from 'react-native'; import { stackStyle } from '../Common/styles'; -import { SvgIconProps, FontIconProps } from '@fluentui-react-native/icon'; +import { SvgIconProps } from '@fluentui-react-native/icon'; import TestSvg from './test.svg'; const CustomizedIconButton = Button.customize({ @@ -13,48 +13,35 @@ const CustomizedIconButton = Button.customize({ }); export const ButtonIconTest: React.FunctionComponent<{}> = () => { - if (Platform.OS == ('win32' as any)) { - const testImage = require('./icon_24x24.png'); - const testTtf = require('./Font Awesome 5 Free-Solid-900.otf'); + const testImage = require('./icon_24x24.png'); - const fontProps: FontIconProps = { - fontFamily: `Font Awesome 5 Free`, - fontSrcFile: testTtf, - codepoint: 0xf083, - fontSize: 16, - }; + const svgProps: SvgIconProps = { + src: TestSvg, + viewBox: '0 0 500 500', + }; - const svgProps: SvgIconProps = { - src: TestSvg, - viewBox: '0 0 500 500', - }; + // SVG-based icons are not available on all platforms yet + const svgIconsEnabled = ['ios', 'macos', 'win32'].includes(Platform.OS as string); - return ( - - -