React Native SDK

What is the minimum required React Native version?

The minimum React Native version required is 0.60, but it would be good if use the latest stable version of react-native.

Getting started

arrow_rightIntegration with help of npm module

                The package is available on npm.(npm is an online repository for the publishing of open-source Node.js projects 
                along with version managment and dependency managment.)
                Install the package:
                   npm i questionpro-feedback-survey
                
arrow_rightUsage

                Initialization:
                        
                    import {initQp, SurveyType} from 'questionpro-feedback-survey';
                    
                    let payload = { 
                        apiKey: 'api_access_key', //Your API Access Key
                          surveyType: SurveyType.Feedback 
                    };
                    initQp(payload).then(status => {                                    
                        console.log('QuestionPro Feedback Survey initialization status: ' + status);
                    });
                
                    
                Trigger feedback survey and launch component:
                        
                    import {QpFeedbackSurvey} from 'questionpro-feedback-survey';
                    
                    <QpFeedbackSurvey
                        surveyId={survey_id}
                        onSurveyFinished={finishedSurvey}; />

                        const finishedSurvey = () => {
                          //Callback of finish survey or terminate survey.
                        };