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

Function source

src/components/__tests__/Icon.test.tsx:34–41  ·  view source on GitHub ↗
({ size, testID }: { size: number; testID: string })

Source from the content-addressed store, hash-verified

32
33 it('renders correctly with function source', () => {
34 const source = ({ size, testID }: { size: number; testID: string }) => (
35 <Image
36 accessibilityIgnoresInvertColors
37 source={{ uri: 'https://picsum.photos/700' }}
38 style={{ width: size, height: size }}
39 testID={testID}
40 />
41 );
42 const { getByTestId } = render(
43 <Icon source={source} size={ICON_SIZE} testID="function-icon" />
44 );

Callers 1

AvatarImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…