Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working when used with camera plugin #57

Open
JWiseCoder opened this issue Aug 22, 2019 · 1 comment
Open

Not working when used with camera plugin #57

JWiseCoder opened this issue Aug 22, 2019 · 1 comment

Comments

@JWiseCoder
Copy link

Plugin version: 1.0.7
NativeScript Version: 6.0.2
OS: iOS

When using the cropping tool with the camera plugin (such as in the example given in the documentation of this plugin), the crop view controller will not appear. The promise neither is resolved nor rejected. Nothing happens.

However, if you put a setTimeout around the imageCropper.show call, the imageCropper will appear after the interval. I think this is due to the fact that the ImageCropper is trying to present the view controller before or at the same time as the camera viewcontroller is on the screen or animating out.

This did not seem to be the case in earlier version. It seemed to work fine there.

I suspect this may have something to do with the weird while loop that runs until there is no presented viewcontroller. This is really not a good way of accomplishing that. And I suspect it might be part of the problem.

@shiv19
Copy link
Collaborator

shiv19 commented Jan 5, 2020

#49 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants