Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.08 KB

File metadata and controls

52 lines (37 loc) · 1.08 KB

SurveyMonkey React Native - Example App

Example application demonstrating the SurveyMonkey React Native SDK.

Quick Start

  1. Setup (first time only):

    npm run setup
  2. Run on iOS:

    npm run ios
  3. Run on Android:

    npm run android

Basic Usage

Edit App.js to add your survey hash:

import SurveyMonkey from 'surveymonkey-react-native';

const SURVEY_HASH = 'YOUR_SURVEY_HASH_HERE'; // Get from SurveyMonkey.com

// Present survey
SurveyMonkey.presentSurvey(SURVEY_HASH);

Available Scripts

npm run setup        # One-time setup (generates config files)
npm run ios          # Run on iOS
npm run android      # Run on Android
npm run start        # Start Metro bundler
npm run clean        # Remove generated files

Get Your Survey Hash

  1. Log in to SurveyMonkey.com
  2. Create or select a survey
  3. Go to Collect ResponsesMobile SDK
  4. Copy the Survey Hash

See the main README for full API documentation and advanced features.