import React from 'react'; import { Text, TextStyle } from 'react-native'; // Removed StyleProp import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons'; interface AppIconProps { name: string; size?: number; color?: string; style?: TextStyle; // Simplification } export const AppIcon: React.FC = ({ name, size = 24, color, style }) => { // Check if likely emoji (non-ascii) const isEmoji = /[^\u0000-\u007F]/.test(name); if (isEmoji) { return {name}; } return ; };