Comments (10)
I’ll have to get my hands on and iPad to test.
from react-native-print.
@christopherdro This can be replicated on the iOS simulator
I believe it's due to UIPRinterPickerController presentAnimated:
works on iPhone but unfortunately not iPad.
https://stackoverflow.com/questions/20916628/uiprintinteractioncontroller-in-ipad-is-giving-me-two-warnings
Seems it needs to be passed a view but I couldn't figure out how to work with the RCT bridge for it (also never touched objective-c).
from react-native-print.
Just pushed a PR for this: #41
from react-native-print.
I just downloaded this update and rebuilt my project but the dialog still doesn't appear. Has it's implementation changed?
from react-native-print.
Have you also updated #43? Wrong print data will be silently ignored otherwise.
from react-native-print.
This method is just to select the printer, no data is passed?
selectPrinter = async () => {
const selectedPrinter = await RNPrint.selectPrinter()
this.setState({ selectedPrinter })
}
I can see that it goes into the ipad code for selectPrinter, but nothing comes up on screen. Unfortunately I don't know Objective C so unable to help debug beyond trying to move pieces around.
The dialogue does pop up with you just try and print (and has always been fine)
from react-native-print.
I'm able to see the dialog from selectPrinter on iPad simulator
from react-native-print.
I just tried on my barebones side project and nothing. I'll try on a fresh build.
I'm using iOS simulator 10, with iOS 11.2
Is there any information I can give that'd be useful? I've put in NSLogs and I see the code run, but no popup thus no completion handler, goes straight through that. However I do get these, but I think just warnings:
testing_native[59545:5453168] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/samhoult/Library/Developer/CoreSimulator/Devices/04E718B6-45A6-4E31-BBCC-371A7F62E929/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-03-24 19:25:17.373405-0700 testing_native[59545:5453168] [MC] Reading from private effective user settings.
from react-native-print.
Please try running the example.
from react-native-print.
The example only works for me if the app is built as iPhone. However if you build with deployment info devices to universale of iPad it didn't work.
Thanks for getting back to me
from react-native-print.
Related Issues (20)
- How to print Local Pdf, doc file from Gallery HOT 2
- Print gets blurry when I am trying print receipt on bluetooth printer HOT 1
- Android packaging error HOT 5
- Silent print support in react-native-windows HOT 2
- build error for android HOT 2
- react-native-print working properly on debug build but getting error at ./gradlew assembleRelease and getting following error...this error is only with this package only..please help HOT 1
- Print webview screen HOT 1
- make silent printing optional for ios HOT 1
- Bluetooth and Wifi support for Brother Printer HOT 5
- Android pagination issue HOT 1
- working around rdar://FB11966380 (iOS 16 blank page issue with label printers) HOT 1
- Type improvements HOT 1
- Windows HTML Print HOT 1
- Print gets printer name blurry when I am trying print on USB printer HOT 3
- Pdf not fit properly in Print preview, make blank space either right and bottom. HOT 2
- Customize print screen
- Automatically click the print button
- PDF print attempt causes crash on iOS17+ HOT 2
- Showing black background into receipt
- Connecting and Printing Tickets from POS printer - React Native Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-print.