I want to create a report with react-pdf. I get this error when I use Image. There is no error when I remove the image. How do I add an Image. Thank you for your help.
import React from "react";
import {styles} from "../styles";
import {Text, View,Image} from "@react-pdf/renderer";
export const HeaderBorder = () => (
<View style={{flexDirection: "row",border: "2 solid black",padding:"5px"}}>
<View
style={{
width: "40%"
}}
>
<Image
style={{
width: "100%",
height:"50px",
marginHorizontal: 0,
marginVertical: 0,
}}
src="./logo512"
/>
</View>
<View style={{width: "60%"}}>
<Text>Informations</Text>
</View>
</View>
)