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

AppSymbol.ios.tsx

15 lines528 Bytes

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