react-native-meon-edoc
v1.0.4
Published
`$ npm install react-native-meon-edoc react-native-webview --save`
Downloads
9
Readme
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)}
}}
/>;