Open theocikos opened 4 years ago
@theocikos can you run it right for ios ? i am starting for android right now. If i do it i will text you
@theocikos did you solve it ?
No i can't make it work :/ For ios it works fine.
I am try to run this on android using following config "react": "16.8.6", "react-native": "0.60.5", "react-native-document-scanner": "^1.4.2", And i am getting following error: Invariant Violation: requireNativeComponent: RNPdfScanner was not found in the UIManager
This package is not working in react-native 0.60 for android. I used rn-doc-scanner.
I am also facing same issue:
"react": "16.8.3",
"react-native": "0.59.1",
"react-native-document-scanner": "^1.4.2",
For iOS its working as expected. Great!
For Android, I followed exact same steps given in ReadMe file. Build is successful, but when I open component that contains DocumentScanner reference gets below error on application.
Can someone please help on this or give direction?
CC: @Michaelvilleneuve
@theocikos - any luck on this issue?
Sorry @pnutmath i didn't had any luck either.I am working on creating my own scanner
Okay @theocikos, let us know once you ready.. or need any help..
Any update on this? @Michaelvilleneuve
I too get the same error. I'm using RN Version 0.59.10 and it doesn't work :(
Having the same error. This package supports iOS only?
I have the same error. Solution?
I hava the same error in iOS. "react": "16.9.0", "react-native": "0.61.2", "react-native-document-scanner": "^1.4.2". Any solution? I didn't try on Android yet.
Invariant Violation: requireNativeComponent: RNPdfScanner was not found in the UIManager. Is anybody found the solution to this problem?
Please try to use the version in master by doing
yarn add https://github.com/Michaelvilleneuve/react-native-document-scanner
Hi, I'm also getting the same error even for iOS! Invariant Violation: requireNativeComponent: RNPdfScanner was not found in the UIManager.
react-native : 0.61.5
Anybody has the solution?
No i can't make it work :/ For ios it works fine.
I'm unable to run it for iOS. Can you help me out
@Michaelvilleneuve can you please upload the example for android in index.android.js as you upload the example for ios in index.ios.js
any update on this??
+1
+1
+1
+1
+1
Usualy the "invariant violation" issue can indicate that you didn't run "react-native link" correctly. Can you give it a try ?
Did anyone get a solution for this ?
@Override
protected List
same issue here any update?
On Android device: requireNativeComponent:"RNPdfScanner"was not found in the UIManager.I follow exactly the steps from readme but i can't get around this error.Thanks
Any updates?
Any updates?
try: go to : node_modules/@woonivers/react-native-document-scanner/ios/RNPdfScannerManager.m
comment these line and build
// - (dispatch_queue_t)methodQueue // { // return dispatch_get_main_queue(); // }
try: go to : node_modules/@woonivers/react-native-document-scanner/ios/RNPdfScannerManager.m
comment these line and build
// - (dispatch_queue_t)methodQueue // { // return dispatch_get_main_queue(); // }
not working for ios
Any updates? Using it in react-native: "0.71.1"
Hi @kavypharma . I migrated to react-native 0.71.x and it didn't work. There were two problems:
Solution:
Install and use the new version of document scanner:
yarn add https://github.com/Andycapn/react-native-document-scanner
Make sure RNPdfScanner pod is installed. For me, auto-linking didn't worked, so I added it manually at the end of the Podfile:
pod 'RNPdfScanner', path: '../node_modules/@andycapn/react-native-document-scanner/ios'
Also, for Android, don't forget to add the openCV library in settings.gradle:
include ':openCVLibrary310' project(':openCVLibrary310').projectDir = new File(rootProject.projectDir,'../node_modules/@andycapn/react-native-document-scanner/android/openCVLibrary310')
Have a nice day.
Hi @kavypharma . I migrated to react-native 0.71.x and it didn't work. There were two problems:
- The API of react native changed a little bit, and the old typescript implementation didn't work (i.e. removing device listeners). Some guy forked old version from woonivers and fixed the conflict - https://github.com/Andycapn/react-native-document-scanner
- For some reason, auto-linking didn't work for iOS.
Solution: Install and use the new version of document scanner:
yarn add https://github.com/Andycapn/react-native-document-scanner
Make sure RNPdfScanner pod is installed. For me, auto-linking didn't worked, so I added it manually at the end of the Podfile:
pod 'RNPdfScanner', path: '../node_modules/@andycapn/react-native-document-scanner/ios'
Also, for Android, don't forget to add the openCV library in settings.gradle:
include ':openCVLibrary310' project(':openCVLibrary310').projectDir = new File(rootProject.projectDir,'../node_modules/@andycapn/react-native-document-scanner/android/openCVLibrary310')
Have a nice day.
In my case the Xcode project's Libraries folder were empty and I additionally needed to manually add the native module RNPdfScanner, following these steps:
Open Finder and navigate to the node_modules/@andycapn/react-native-document-scanner/ios
directory in your React Native project, assuming you've already installed the library via npm or Yarn.
Open your React Native project in the ios folder by opening the .xcworkspace file with Xcode.
Right-click on the Libraries folder or an equivalent area in your Project Navigator within Xcode. Select Add Files to "YourProjectName"..., navigate to the desired directory (node_modules/@andycapn/react-native-document-scanner/ios
), select the RNPdfScanner.xcodeproj
file, and click Add.
Select Product -> Clean Build Folder
from the Xcode menu bar. Then rebuild your project by choosing Product -> Build or pressing the Play button in Xcode.
This process helped properly integrate the module into my project
confirm if you are using allProjects{} in build.gradle (project)
Although the linking works in the ios devices on the android i get error : Invariant Violation: requireNativeComponent:"RNPdfScanner"was not found in the UIManager.I follow exactly the steps from readme but i can't get around this error.Thanks