We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to use jsPDF in a React Native project but I'm getting this error Cannot read property 'jsPDF' of undefined
code:
... const generatePDF = ()=>{ const doc = new jsPDF() doc.text('Samle', 20,20) doc.save('sample.pdf') } ... <TouchableOpacity style={[styles.button, { backgroundColor:'#007BFF' }]} onPress={() => { generatePDF() }} > <Text style={[styles.buttonText, { color: theme?.buttonTextColor || '#fff' }]}> Test </Text> </TouchableOpacity>
"jspdf": "2.5.2", "react": "18.2.0", "react-native": "0.73.6",
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to use jsPDF in a React Native project but I'm getting this error
Cannot read property 'jsPDF' of undefined
code:
"jspdf": "2.5.2",
"react": "18.2.0",
"react-native": "0.73.6",
The text was updated successfully, but these errors were encountered: