christopherdro / react-native-print

Print documents using React Native
MIT License
335 stars 145 forks source link

Can i print through local ip address of the printer #101

Closed imceZZ closed 4 years ago

imceZZ commented 5 years ago

I just want to be informed that does it is possible to print through ip address of the printer that is connected in my network, i tried to put ip address of the printer in printerURL at the function silentPrint but when i click silent print i get message contacting printer then it throws Failed to contact printer, i need this functionality because i am building POS application.

Shivendra30 commented 5 years ago

I need the same thing

osama-rizk commented 4 years ago

+1 need to support print with ip on iOS

cschultz1272 commented 4 years ago

@Osama-Rezk I was able to print to a local printer using this format:


await RNPrint.print({
printerURL: 'http://10.2.10.11/',
html: yourHtml,
});