$ npm install react-native-wescan --save
$ react-native link react-native-wescan
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-wescan
and addRNWescan.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNWescan.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
import RNWescan from 'react-native-wescan';
RNWescan.scanDocument((response) => {
console.log(response) //It will give the private path of the final image
})