import { requireNativeViewManager } from "expo-modules-core"; import * as React from "react"; import { processColor, ProcessedColorValue } from "react-native"; import { SFSymbolViewProps } from "./SFSymbol.types"; type NativeSFSymbolViewProps = Omit & { colors: (ProcessedColorValue | null | undefined)[] | undefined; }; const NativeView: React.ComponentType = requireNativeViewManager("SFSymbol"); export class SFSymbol extends React.PureComponent { render() { const { color, style, ...restProps } = this.props; const colors = typeof color === "string" ? [processColor(color)] : color?.map(processColor); return ( ); } }