MCPcopy Create free account
hub / github.com/callstack/react-native-paper / DialogIcon

Function DialogIcon

src/components/Dialog/DialogIcon.tsx:65–85  ·  view source on GitHub ↗
({
  size = 24,
  color,
  icon,
  theme: themeOverrides,
}: Props)

Source from the content-addressed store, hash-verified

63 * ```
64 */
65const DialogIcon = ({
66 size = 24,
67 color,
68 icon,
69 theme: themeOverrides,
70}: Props) => {
71 const theme = useInternalTheme(themeOverrides);
72
73 if (!theme.isV3) {
74 return null;
75 }
76
77 //@ts-ignore
78 const iconColor = color || theme.colors.secondary;
79
80 return (
81 <View style={styles.wrapper}>
82 <Icon source={icon} color={iconColor} size={size} />
83 </View>
84 );
85};
86
87DialogIcon.displayName = 'Dialog.Icon';
88

Callers

nothing calls this directly

Calls 1

useInternalThemeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…