common

This common module inside KYC is meant to be an intermediary between a type of KYC selected and the Baas.

How to use

The following env vars are required:

API_KYC_DOCUMENTS='/baas/kyc-documents'
//If business applications are supported then also add this env
API_BUSINESS_KYB_DOCUMENTS='/baas/business/kyb-documents'

Import the following where you need to reder the InspectScreen

import {INSPECT_KYC_SCREENS} from 'LinkerStudio/modules/kyc/common/constants';
/* Screens for KYC */
 <Stack.Group>
   {INSPECT_KYC_SCREENS.map(screen => {
      return (
       <Stack.Screen
         key={screen.name}
         name={screen.name}
         component={screen.component}
       />
      );
  })}
</Stack.Group>

Import the following where you declare your navigation types

import {InspectKycStackParams} from 'LinkerStudio/modules/kyc/common/navigation/types';

Add the InspectKycStackParams to your types

& InspectKycStackParams

Last updated