qp-widgets
v1.1.17
Published
A simple and fully customizable React Native component to conduct the study and collect the feedback of customers.
Downloads
6
Maintainers
Readme
About
QuestionPro Cx feedback survey SDK(Software Development Kit) to collect the customer feedback. Capability to integrate it in mobile application and trigger feedback survey whenever you want.
Getting started
Install the package:
npm i qp-widgets
Usage
Initialization
import {initQp} from 'qp-widgets';
let payload = { apiKey: 'api_access_key' };
initQp(payload).then(status => {
console.log('QP Feedback Survey Init status: ' + status);
});
Trigger feedback survey and launch component
import {QpFeedbackSurvey} from 'qp-widgets';
<QpFeedbackSurvey
surveyId={survey_id}
onSurveyFinished={finishedSurvey} />
const finishedSurvey = () => {
//Callback of finish survey or terminate survey.
};
Initialization payload Props
| Props | Details | Example | Default Value |
| ----- | ------- | ------- | ------------- |
| apiKey | [Required]
API Access Key of feedback system. | -- | Required field |
| email | [Optional]
Respondant email address. If not set this props, the response will be collected as an anonymous. | "[email protected]" | anonymous |
| firstName | [Optional]
First name of respondent. | "John" | ' ' |
| lastName | [Optional]
Last name of respondent. | "john" | ' ' |
| mobile | [Optional]
Mobile number of respondent. | "+91 222********" | ' ' |
| segmentCode | [Optional]
Unique code added for each segment. | "S1" | S1 |
| themeColorHex | [Optional]
Feedback survey component theme color. | "#007bff" | #007bff |