File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,16 +103,59 @@ const styles = create({
103103 <Code
104104 lang =" tsx"
105105 code ={
106- ` <View style={styles.modal.wrapper}>
107- <Text style={styles.modal.title}>Hello</Text>
108-
109- <Button
110- onPress={handlePress}
111- title="Submit"
112- style={active ? styles.modal.active : styles.modal.inactive}
113- />
114- </View>
115- ` }
106+ ` <View style={styles.card}>
107+ <View style={styles.card.header}>
108+ <Image
109+ source={{ uri: user.avatar }}
110+ style={styles.card.header.avatar}
111+ />
112+
113+ <View>
114+ <Text style={styles.card.header.info.name}>
115+ {user.name}
116+ </Text>
117+
118+ <Text style={styles.card.header.info.username}>
119+ @{user.username}
120+ </Text>
121+ </View>
122+ </View>
123+
124+ <View style={styles.card.actions}>
125+ <Pressable
126+ style={[
127+ styles.card.actions.button,
128+ styles.card.actions.button.primary,
129+ ]}
130+ >
131+ <Text
132+ style={[
133+ styles.card.actions.button.text,
134+ styles.card.actions.button.primary.text,
135+ ]}
136+ >
137+ Follow
138+ </Text>
139+ </Pressable>
140+
141+ <Pressable
142+ style={[
143+ styles.card.actions.button,
144+ styles.card.actions.button.secondary,
145+ ]}
146+ >
147+ <Text
148+ style={[
149+ styles.card.actions.button.text,
150+ styles.card.actions.button.secondary.text,
151+ ]}
152+ >
153+ Message
154+ </Text>
155+ </Pressable>
156+ </View>
157+ </View> `
158+ }
116159 />
117160
118161 <h3 >Best practices</h3 >
You can’t perform that action at this time.
0 commit comments