Skip to content

Commit 4f26171

Browse files
committed
feat(example-app): ⚡ add full width buttons
1 parent 31f5bfd commit 4f26171

File tree

1 file changed

+33
-29
lines changed

1 file changed

+33
-29
lines changed

example/src/pages/AboutScreen.tsx

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -52,36 +52,40 @@ const AboutScreen = ({ navigation }) => {
5252
</Box>
5353

5454
<Box style={tailwind.style("flex-row w-full justify-center mt-4")}>
55-
<Button
56-
prefix={
57-
<Icon
58-
icon={<Github fill={tailwind.getColor("text-white-500")} />}
59-
/>
60-
}
61-
onPress={() => {
62-
Linking.openURL(
63-
"https://github.com/adaptui/react-native-tailwind",
64-
);
65-
}}
66-
size="lg"
67-
>
68-
Github
69-
</Button>
55+
<Box style={tailwind.style("flex-1")}>
56+
<Button
57+
prefix={
58+
<Icon
59+
icon={<Github fill={tailwind.getColor("text-white-500")} />}
60+
/>
61+
}
62+
onPress={() => {
63+
Linking.openURL(
64+
"https://github.com/adaptui/react-native-tailwind",
65+
);
66+
}}
67+
size="lg"
68+
>
69+
Github
70+
</Button>
71+
</Box>
7072

71-
<Button
72-
prefix={
73-
<Icon
74-
icon={<Dribble fill={tailwind.getColor("text-white-500")} />}
75-
/>
76-
}
77-
onPress={() => {
78-
Linking.openURL("https://dribbble.com/timelessco");
79-
}}
80-
style={tailwind.style("ml-3")}
81-
size="lg"
82-
>
83-
Dribble
84-
</Button>
73+
<Box style={tailwind.style("flex-1")}>
74+
<Button
75+
prefix={
76+
<Icon
77+
icon={<Dribble fill={tailwind.getColor("text-white-500")} />}
78+
/>
79+
}
80+
onPress={() => {
81+
Linking.openURL("https://dribbble.com/timelessco");
82+
}}
83+
style={tailwind.style("ml-3")}
84+
size="lg"
85+
>
86+
Dribble
87+
</Button>
88+
</Box>
8589
</Box>
8690
<Text style={tailwind.style("font-medium pt-2")}>
8791
version: {Constants.manifest.version}(5)

0 commit comments

Comments
 (0)