Comments (7)
Have you tried to pass flex: 1 to style component ?
<DocumentScanner
style={{
flex: 1, <------- Try it
width: width,
height: height,
backgroundColor: '#fff'
}}
onPictureTaken={data =>{
console.log(data.path)
}}
enableTorch={false}
detectionCountBeforeCapture={5}
/>
from react-native-document-scanner-android.
@SwagatRanjit84 Can you tell us how it works cause i have black screen
from react-native-document-scanner-android.
@andreluisjunqueira I have made it working cheers to this library.
from react-native-document-scanner-android.
@SwagatRanjit84 How did you get this to work?
from react-native-document-scanner-android.
@MahmoudElmoghazy @Agollapalli It worked on react native version 0.57.8, after adding
implementation 'com.android.support:support-v4:27.1.1' implementation 'com.android.support:appcompat-v7:27.0.2' implementation 'com.android.support:design:27.1.0'
in android/app/build.gradle.
from react-native-document-scanner-android.
@SwagatRanjit84 Not working can you give us more info please
from react-native-document-scanner-android.
This working for me
"react": "^16.8.1", "react-native": "^0.58.4", "react-native-documentscanner-android": "git+https://github.com/thongdn/react-native-documentscanner-android.git#develop",
from react-native-document-scanner-android.
Related Issues (20)
- Capture detection and scanning not working HOT 5
- Unable to detect the image corners HOT 1
- Manual Crop of the image
- can someone give your app.js file ?? i am getting a blank page
- Black screen HOT 5
- i have this issue
- Get rectangle co-ordinates
- Error Task :openCVLibrary310:compileDebugAidl FAILED HOT 1
- Update OpenCV library version HOT 1
- Aspect ratio
- Auto detect not working in my application HOT 2
- autofocus failed: app crashes HOT 1
- error: package org.opencv.core does not exist HOT 2
- org.opencv.DocumentScannerPackage HOT 4
- unable to install with rpm HOT 2
- org.opencv.DocumentScannerPackage HOT 2
- Fix for manual capture method
- I have clonned your repo and facing some issues after doing npm i and local.properties to the folder of android.
- Could not resolve com.facebook.react:react-native:0.19.+.
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-document-scanner-android.