After Width: | Height: | Size: 728 B |
After Width: | Height: | Size: 794 B |
After Width: | Height: | Size: 664 B |
After Width: | Height: | Size: 806 B |
@ -0,0 +1,58 @@ |
||||
import { View, Text, Image, TouchableOpacity } from "react-native"; |
||||
import React from "react"; |
||||
import tw from "tailwind-rn"; |
||||
import fontSize from "../../constants/fontSize"; |
||||
|
||||
const Box = ({ info }) => { |
||||
return ( |
||||
<TouchableOpacity |
||||
style={[ |
||||
tw("flex flex-row-reverse py-4 px-3 rounded-md mt-4"), |
||||
{ |
||||
backgroundColor: info.bg, |
||||
borderColor: info.borderColor, |
||||
borderWidth: 1, |
||||
}, |
||||
]} |
||||
> |
||||
<Image source={info.icon} style={{ width: 40, height: 40 }} /> |
||||
<View style={tw("flex flex-col flex-1 mr-3")}> |
||||
<Text |
||||
style={{ |
||||
fontFamily: "regular", |
||||
fontSize: fontSize.sm, |
||||
color: info.title.color, |
||||
}} |
||||
> |
||||
{info.title.text} |
||||
</Text> |
||||
<Text |
||||
style={[ |
||||
tw("mt-1"), |
||||
{ |
||||
fontFamily: "light", |
||||
fontSize: fontSize.xs, |
||||
color: info.description.color, |
||||
}, |
||||
]} |
||||
> |
||||
{info.description.text} |
||||
</Text> |
||||
<Text |
||||
style={[ |
||||
tw("self-start mt-2"), |
||||
{ |
||||
fontFamily: "light", |
||||
fontSize: fontSize.xs, |
||||
color: info?.link?.color, |
||||
}, |
||||
]} |
||||
> |
||||
{info?.link?.title} |
||||
</Text> |
||||
</View> |
||||
</TouchableOpacity> |
||||
); |
||||
}; |
||||
|
||||
export default Box; |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 1.2 KiB |