Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

AppSymbol.ios.tsx

16 lines561 Bytes

1import { SymbolView as ExpoSymbolView } from "expo-symbols";
2import { withUniwind } from "uniwind";
3import type { AppSymbolViewProps } from "./AppSymbol";
4​
5export type { SFSymbol } from "expo-symbols";
6export type { AppSymbolName } from "./AppSymbol";
7​
8/**
9 * Keep the iOS implementation isolated from the Android Tabler fallback so
10 * Metro does not initialize the icon package when iOS renders SF Symbols.
11 */
12function AppSymbolView(props: AppSymbolViewProps) {
13 return <ExpoSymbolView {...props} />;
15​
16export const SymbolView = withUniwind(AppSymbolView);