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

Function ListImage

src/components/List/ListImage.tsx:41–68  ·  view source on GitHub ↗
({
  style,
  source,
  variant = 'image',
  theme: themeOverrides,
}: Props)

Source from the content-addressed store, hash-verified

39 * ```
40 */
41const ListImage = ({
42 style,
43 source,
44 variant = 'image',
45 theme: themeOverrides,
46}: Props) => {
47 const theme = useInternalTheme(themeOverrides);
48 const getStyles = () => {
49 if (variant === 'video') {
50 if (!theme.isV3) {
51 return [style, styles.video];
52 }
53
54 return [style, styles.videoV3];
55 }
56
57 return [style, styles.image];
58 };
59
60 return (
61 <Image
62 style={getStyles()}
63 source={source}
64 accessibilityIgnoresInvertColors
65 testID="list-image"
66 />
67 );
68};
69
70const styles = StyleSheet.create({
71 image: {

Callers

nothing calls this directly

Calls 2

useInternalThemeFunction · 0.90
getStylesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…