qualtrics-poc

A POC of the Qualtrics 2.0.0 SDK running in React Native.

Setup

In order to run the application you will need to install node packages and ios pods.

Clone the repo to local machine, cd into the directory with cd qualtrics-poc and run: npm install in the root of the project in order to install node packages.

run cd ios && pod install & cd .. to install native ios pods.

use react-native run-ios to launch the simulator and run the application.

Additional Configuration

Initialize Project:

In App.js the Qualtrics SDK is configured with the following block:

Qualtrics.initializeProject( 'BRAND ID', 'PROJECT ID');

Display intercept

Qualtrics.evaluateIntercept('INTERCEPT_ID', async response => { if (response.passed) { var intercept = await Qualtrics.displayIntercept('INTERCEPT_ID'); } else { console.log('failed:', response); } });

App Screenshots

Screenshot 2021-07-15 at 7 25 06 PM Screenshot 2021-07-15 at 7 25 46 PM Screenshot 2021-07-15 at 7 26 14 PM Screenshot 2021-07-15 at 7 32 10 PM Screenshot 2021-07-15 at 7 32 45 PM