MCPcopy Create free account
hub / github.com/andrew-levy/jetpack-compose-react-native / BadgesExample

Function BadgesExample

example/app/badges.tsx:4–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { BadgedBox, Badge, Icon } from "jetpack-compose-react-native";
3
4export default function BadgesExample() {
5 return (
6 <View style={styles.container}>
7 <Text style={styles.header}>Badge Example</Text>
8 <BadgedBox badge={<Badge content="Hello" />}>
9 <Icon
10 name="notifications"
11 theme="filled"
12 contentDescription="notifications icon"
13 />
14 </BadgedBox>
15 </View>
16 );
17}
18
19const styles = StyleSheet.create({
20 container: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected