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

Fixes error 'android.view.ContextThemeWrapper cannot be cast to android.app.Activity' #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alessioprestileo
Copy link

I'm trying to use this library within an app built with expo and ejected to expokit.
When I try to use the DocumentScanner component in my .tsx file I get the error you can see in the screenshot.
I fixed the error by making a couple of changes in 'DocumentScannerViewManager.java', following the suggestion from https://stackoverflow.com/questions/51640154/android-view-contextthemewrapper-cannot-be-cast-to-android-app-activity.

Screenshot 2019-03-19 at 14 07 22

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

Successfully merging this pull request may close these issues.

1 participant