25 lines
517 B
TypeScript
25 lines
517 B
TypeScript
import { Text, View, StyleSheet } from "@react-pdf/renderer";
|
|
|
|
const styles = StyleSheet.create({
|
|
row: {
|
|
display: "flex",
|
|
flexDirection: "row",
|
|
},
|
|
bullet: {
|
|
height: "100%",
|
|
},
|
|
});
|
|
|
|
const ListItem = ({ text, textStyle }: { text: string, textStyle: any[] }) => {
|
|
return (
|
|
<View style={styles.row}>
|
|
<View style={styles.bullet}>
|
|
<Text style={textStyle}>{"\u2022" + " "}</Text>
|
|
</View>
|
|
<Text style={textStyle}>{text}</Text>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export default ListItem;
|