MCPcopy
hub / github.com/callstack/react-native-paper / ListIcon

Function ListIcon

src/components/List/ListIcon.tsx:45–61  ·  view source on GitHub ↗
({
  icon,
  color: iconColor,
  style,
  theme: themeOverrides,
}: Props)

Source from the content-addressed store, hash-verified

43 * ```
44 */
45const ListIcon = ({
46 icon,
47 color: iconColor,
48 style,
49 theme: themeOverrides,
50}: Props) => {
51 const theme = useInternalTheme(themeOverrides);
52
53 return (
54 <View
55 style={[theme.isV3 ? styles.itemV3 : styles.item, style]}
56 pointerEvents="box-none"
57 >
58 <Icon source={icon} size={ICON_SIZE} color={iconColor} theme={theme} />
59 </View>
60 );
61};
62
63const styles = StyleSheet.create({
64 item: {

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…