react-native-meontool
v1.0.7
Published
1.0.2
Downloads
10
Readme
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.
/>;