react-native-meon-edoc

1.0.4 • Public • Published

npm i react-native-meon-edoc

Getting started

Installation

$ npm install react-native-meon-edoc react-native-webview --save

Android & iOS

Usage

import EDocSDK from "react-native-meon-edoc";

// TODO: What to do with the module?
const [isLoading, setIsLoading] = useState(false);

//Call this function on button click as per the usage.
<EDocSDK
  company_name={"companyNamexxx"} //enter company name
  secret_token={"secretTokkenxxxx"} //enter secret token provided by organization
  documents={"aadhar"} //aadhaar, pan
  pan_no={""} //pannumber
  pan_name={""} //name on pan
  redirect_url={"www.google.com"} //Webhook cannot be changed.
  onSuccess={(result) => {
    setIsLoading(false);
    //File downloads automatically when the user completes their document retrieval journey.
    //Write your function to navigate upon successful SDK call.
    Linking.openURL(`https://edoc.meon.co.in/${result?.aadhar_filename}`);
    // console.log('Third API call successful ', result)}
  }}
/>;

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-meon-edoc

Weekly Downloads

7

Version

1.0.4

License

ISC

Unpacked Size

15.6 kB

Total Files

3

Last publish

Collaborators

  • dhananjaymeon