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

Function IconExample

example/src/Examples/IconExample.tsx:17–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15);
16
17const IconExample = () => {
18 return (
19 <ScreenWrapper>
20 <List.Section title="Default icon (MaterialDesignIcons)">
21 <View style={styles.row}>
22 <Icon source="camera" size={24} />
23 </View>
24 </List.Section>
25 <List.Section title="Image icon">
26 <View style={styles.row}>
27 <Icon source={{ uri: 'https://picsum.photos/700' }} size={48} />
28 </View>
29 </List.Section>
30 <List.Section title="Render function icon">
31 <View style={styles.row}>
32 <Icon source={AssetIcon} size={48} />
33 </View>
34 </List.Section>
35 </ScreenWrapper>
36 );
37};
38
39IconExample.title = 'Icon';
40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…