React Native SDK

最低限必要なReact Nativeのバージョンは?

最低限必要なReact Nativeのバージョンは0.60ですが、react-nativeの安定した最新版を使用すると良いでしょう。

はじめに

arrow_rightnpmモジュールによる連携

                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_right使用方法

                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';
                    
                    

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