@e-gates-app/passme-autokyc
v0.0.19
Published
React Native module for autokyc
Downloads
22
Readme
Steps to install passme-autokyc module
Execute npm i @e-gates-app/passme-autokyc
or yarn add @e-gates-app/passme-autokyc
Install peerDependecies:
- react-native-fs,
- react-native-screens,
- react-native-svg,
- react-native-image-picker,
- If @react-navigation/native and @react-navigation/stack exist in project thier versions should be >6.0.0
Execute comand in terminal npm start -- --reset-cache
Usage
import React from 'react';
import PassmeAutokyc from '@e-gates-app/passme-autokyc';
const colors = {
main: '#171717',
text1: '#171717',
text2: '#737373',
background01: '#FFFFFF',
background02: '#F8F9FD',
elementsText: '#FFFFFF',
icon: '#FFFFFF',
error: '#FF594F',
success: '#4FD18B',
pending: '#F5A623',
} as const;
function App(): JSX.Element {
const onCancel = async () => {};
const onComplete = async () => {};
return (
<PassmeAutokyc
processingUrl="[DYNAMIC_URL]"
resourcesUrl="[API_URL]"
language="en"
colors={colors}
onCancel={onCancel}
onComplete={onComplete}
/>
);
}
export default App;