You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
807 B

import { View, Text, Image, Dimensions } from "react-native";
import React from "react";
import tw from "tailwind-rn";
import fontSize from '../../../constants/fontSize';
import Colors from '../../../constants/Colors';
const { width } = Dimensions.get("window");
const Book = ({ book }) => {
return (
<View
style={[tw("w-full flex flex-row-reverse rounded-md p-2 my-2"), {backgroundColor : Colors.theme1.light.blue3}]}
>
<Image
source={{ uri: `https://dnvn.ir/api/v1/file/${book.fileId}` }}
style={[
tw("rounded-md"),
{ width: width / 5.5, height: ((width / 5.5) * 3) / 2 },
]}
/>
<Text style={[{fontFamily: "regular", fontSize: fontSize.base, marginRight : 10 }]}>{book.title}</Text>
</View>
);
};
export default Book;