Example application demonstrating the SurveyMonkey React Native SDK.
-
Setup (first time only):
npm run setup
-
Run on iOS:
npm run ios
-
Run on Android:
npm run android
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);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- Log in to SurveyMonkey.com
- Create or select a survey
- Go to Collect Responses → Mobile SDK
- Copy the Survey Hash
See the main README for full API documentation and advanced features.