Today I have a tutorial on how to use the expo-print package to create a PDF from HTML. This could be useful if you want users to be able to export reports from your expo react native for example, if you want a user to be able to generate CVs, or export budget data stored in your app.
All my code is available on Github:
You can view more about the expo-print package in expo’s documentation:
You’ve clearly come here to learn and a free audible trial allows you to increase your learning potential in situations where you may be hands free like at the gym or on your commute. It allows you to spend more time on theory when you aren’t able to watch a screen, so that you can maximise your screen time to pick up technical skills. Try it for free today:
// ABOUT ME
My name is Chelsea and I started studying software engineering in 2010. I have been working commercially full time since 2014 and have been in various positions from graduate developer to tech lead to solution architect.
I’m a full stack developer with a lot of experience in C# and Javascript but my passion is for mobile development; specifically native iOS development and cross platform using React Native.
I always have many things on the go and am always trying out a new side hustle and failing at it; perhaps you can learn from my mistakes!
Please like and subscribe if you enjoyed this video and want to see more like it!
Have any suggestions on topics you would like to learn more about? Please suggest them in the comments… I would love to help you out while doing a bit of learning myself!
// PRODUCTS USED
I use the following products in the creation of my videos:
Boya MM1 Microphone –
A reasonable quality and reasonably sturdy but cost effective microphone that can be used by both DSLR cameras, mobile phones and laptops
Canon 18-55mm Lens –
A kit lens but a decent quality lens for beginners getting used to a DSLR
Canon EOS Rebel T7 with 18-55mm Lens –
This is the kit I started with it includes the lens linked above and is a great starter camera.
I love Apple devices… These are the ones I use for my channel content creation:
Apple iPhone 13 –
A good all round phone, good for Apple development and recording videos with enough high quality features but at a cheaper price point than the pro versions.
Apple MacBook Pro –
A nice portable computer for working from anywhere and perfect for iOS development
Apple iPad Air –
Really easy to use for graphic design if required for logos as part of my app development or editing the videos on the go.
Apple Pencil (2nd Generation) –
For logo and icon design in Affinity Designer app for iPad
Logitech Folio Keyboard Touch –
Adds keyboard and touchpad to iPad Air, making it easier to use for writing code/eBooks etc. on the go!
DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting my channel so I can continue to provide you with free content each week!
//CONTACT:
Please contact me at: hello@tripwiretech.com
//CRAVING MORE:
You can find links to all my different sites and social media over on Linktree: …(read more)
Convert Word 2 PDF: Word to PDF Converter
Convert PowerPoint 2 PDF: PPT to PDF Converter
Convert Excel 2 PDF: Excel to PDF Converter
Convert an Image 2 PDF: Image to PDF Converter
Convert HTML 2 PDF: HTML to PDF Converter
More Tools: PDF Converter
thank you for video it is very interesting. But if i want include images in the pdf file how can i insert them
simpleeee como debe ser
Amazing video, thank you so much 😉
Lovely video. Is there a way to name the pdf file ourselves? I noticed in your example it is a random string too. Can this be named to say "invoice" for example.
Hello..great video…so if I instead of use Printer async, use Share..its possible?
How do I make it accept the styles between the styles tags?
thanku so much upload this video sir
2nd tym when i hit generate it shows error pls let me know
Love your content. I have one question, How can we convert a base64 string to pdf ?
Cool
thank you <3
Very good…. served me perfectly…thanks
Thanks. The million dollar question how to preview PDF file within Expo react native app !
Amei o video , mas meu quando clico em imprimir ele está imprimindo a tela e não o que eu digito na textImput + text H1
Hello, i really like your videos and i have been learning alot however the print functionality only works in Expo Go. When i build apk the button does nothing. What would you advice. I want to be able to print using a printer
I am having a problem with images, I can't add images in pdf output, I also checked it online it seems like IOS problem, but mine is Android
I have done it all but still no image
How to download pdf files?
I love your react native videos!! You do a really good job of explaining things! 😀
How can i save thisa on device's /download directory
Top muito obrigado por esse video!! <3
How to add images to the pfd file