react-native-myid
v0.1.7
Published
This package is a react-native module for MyID
Downloads
16
Readme
react-native-myid
This package is a react-native module for MyID
Installation
npm install react-native-myid
Setting up on Android
////
AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
////
build.gradle:
allprojects {
repositories {
// add this line
maven { url "https://artifactory.aigroup.uz:443/artifactory/myid" }
}
}
apply plugin: "com.facebook.react.rootproject"
Setting up on IOS
////
Info.plist:
<key>NSCameraUsageDescription</key>
<string>Required for document and facial capture</string>
////
pod install
Usage
import { startMyId, useListener } from 'react-native-myid';
// ...
const App = () => {
const { data } = useListener();
console.log(data);
return(
<View>
<Button title="start myid" onPress={()=>{
startMyId({
client_id //
clientHash //
clientHashId //
language // "EN" "UZ" "RU" "KY"
type? // "DEBUG" "PRODUCTION"
withPassportDate // "AA1101100"
withBirthDate // "dd.MM.yyyy"
}
)
}} />
</View>
)
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library