react-native-meontool

1.0.7 • Public • Published

npm i react-native-meontool

Getting started

Installation

$ npm install react-native-meontool react-native-webview --save

Android & iOS

Usage

import EsignSDK from "react-native-meontool";
// TODO: What to do with the module?
const [isLoading, setIsLoading] = useState(false);

//Call this function on button click as per the usage.
<EsignSDK
  userId={"useridxx"} // enter your username
  Password={"passwordxx"} // enter you password
  name={"mxxxx"} //signee name
  email={"useremailxx"} //signee email
  mobile={"usermobilexx"} //signee mobile
  reason={"givereasonxx"}
  days_to_expire={"daysxx"}
  has_dynamic_document={true}
  dynamic_coordinate={null}
  webhook={"https://esignuat.meon.co.in/EsignServices/test_webhook"} //Webhook cannot be changed. 
  redirect_url={null}
  esign_type={"EKYC"}
  remove_preview_pdf={false}
  need_name_match={true}
  percentage_name_match={80}
  document_name={".pdf"}
  coordinate={[
    {
      page_number: "1",
      x_coordinate: "130",
      y_coordinate: "100",
      height: "50",
      width: "103",
    },
  ]}
  onSuccess={() => {
    setIsLoading(false);
    console.log("API call successful");
    //Write your function to navigate upon successful SDK call.
    //handle success
  }}
  pdfBase64={pdfBase64} // You need to pass the PDF in base64 format.
/>;

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-meontool

Weekly Downloads

9

Version

1.0.7

License

ISC

Unpacked Size

15.7 kB

Total Files

3

Last publish

Collaborators

  • dhananjaymeon