React Native Document Scanner for Android, Scan Document with crop functionality
npm install react-native-androiddocumentscanner$ npm install react-native-androiddocumentscanner --save
$ react-native link react-native-androiddocumentscanner
#### Android
1. Open up android/app/src/main/java/[...]/MainApplication.java
- Add import com.rf1804.documentscanner.RNAndroiddocumentscannerPackage; to the imports at the top of the file
- Add new RNAndroiddocumentscannerPackage() to the list returned by the getPackages() method
2. Append the following lines to android/settings.gradle:
```
include ':react-native-androiddocumentscanner'
project(':react-native-androiddocumentscanner').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-androiddocumentscanner/android')
android/app/build.gradle
3. Insert the following lines inside the dependencies block in :`
`
compile project(':react-native-androiddocumentscanner')
javascript
import RNAndroiddocumentscanner from 'react-native-androiddocumentscanner';// TODO: What to do with the module?
RNAndroiddocumentscanner;
``