@Priti1
You will not be able to generate Barcodes directly in PowerApps. You can use an image control and set it to any barcode generating site of your choice in the Image property.
For example, an Image control with the Image property set to :
"https://www.barcodesinc.com/generator/image.php?code=123456789&style=197&type=C128B&width=167&height=50&xres=1&font=3"
Will give you a barcode for 123456789
You will not have a lot of luck with this for the HTML in the app, but just fine for an image.
I hope this is helpful for you.