Giter VIP home page Giter VIP logo

Comments (10)

christopherdro avatar christopherdro commented on September 22, 2024

I’ll have to get my hands on and iPad to test.

from react-native-print.

Sam-Hoult avatar Sam-Hoult commented on September 22, 2024

@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.

kevinresol avatar kevinresol commented on September 22, 2024

Just pushed a PR for this: #41

from react-native-print.

Sam-Hoult avatar Sam-Hoult commented on September 22, 2024

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.

kevinresol avatar kevinresol commented on September 22, 2024

Have you also updated #43? Wrong print data will be silently ignored otherwise.

from react-native-print.

Sam-Hoult avatar Sam-Hoult commented on September 22, 2024

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.

christopherdro avatar christopherdro commented on September 22, 2024

I'm able to see the dialog from selectPrinter on iPad simulator

from react-native-print.

Sam-Hoult avatar Sam-Hoult commented on September 22, 2024

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.

christopherdro avatar christopherdro commented on September 22, 2024

Please try running the example.

from react-native-print.

Sam-Hoult avatar Sam-Hoult commented on September 22, 2024

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.

image

Thanks for getting back to me

from react-native-print.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.