最低限必要なReact Nativeのバージョンは0.60
ですが、react-nativeの安定した最新版を使用すると良いでしょう。
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
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.
};