A POC of the Qualtrics 2.0.0 SDK running in React Native.
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.
In App.js the Qualtrics SDK is configured with the following block:
Qualtrics.initializeProject( 'BRAND ID', 'PROJECT ID');
Qualtrics.evaluateIntercept('INTERCEPT_ID', async response => { if (response.passed) { var intercept = await Qualtrics.displayIntercept('INTERCEPT_ID'); } else { console.log('failed:', response); } });