All Projects → yarikpwnzer → react-native-survey-monkey

yarikpwnzer / react-native-survey-monkey

Licence: other
React Native lib for Survey Monkey

Programming Languages

java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to react-native-survey-monkey

SurveyKing
Make a better open source survey system.
Stars: ✭ 961 (+4476.19%)
Mutual labels:  survey, surveymonkey
Larapoll
A Laravel package to manage your polls
Stars: ✭ 189 (+800%)
Mutual labels:  survey
Forms
📝 Simple form & survey app for Nextcloud
Stars: ✭ 127 (+504.76%)
Mutual labels:  survey
Streetcomplete
Easy to use OpenStreetMap editor for Android
Stars: ✭ 2,456 (+11595.24%)
Mutual labels:  survey
Ie Survey
北航大数据高精尖中心张日崇研究团队对信息抽取领域的调研。包括实体识别,关系抽取,属性抽取等子任务,每类子任务分别对学术界和工业界进行调研。
Stars: ✭ 134 (+538.1%)
Mutual labels:  survey
Srvyr
R package to add 'dplyr'-like Syntax for Summary Statistics of Survey Data
Stars: ✭ 163 (+676.19%)
Mutual labels:  survey
Dwsurvey
Open Source Survey System. 最好用的开源问卷调查系统、表单系统。
Stars: ✭ 1,755 (+8257.14%)
Mutual labels:  survey
Angular Surveys
Angular survey / form builder inspired by Google Forms
Stars: ✭ 219 (+942.86%)
Mutual labels:  survey
Graph Adversarial Learning
A curated collection of adversarial attack and defense on graph data.
Stars: ✭ 188 (+795.24%)
Mutual labels:  survey
Ml4code.github.io
Website for "A Survey of Machine Learning for Big Code and Naturalness"
Stars: ✭ 146 (+595.24%)
Mutual labels:  survey
Stateofjs 2019
State of JS 2019 survey report website
Stars: ✭ 145 (+590.48%)
Mutual labels:  survey
Paper Survey
📚Survey of previous research and related works on machine learning (especially Deep Learning) in Japanese
Stars: ✭ 140 (+566.67%)
Mutual labels:  survey
Wq
📱🌐📋 wq: a modular framework supporting web / native geographic data collection apps for mobile surveys and citizen science. Powered by Django REST Framework, Redux, React, and Material UI.
Stars: ✭ 182 (+766.67%)
Mutual labels:  survey
Opendatasurvey
The Open Data Survey application.
Stars: ✭ 131 (+523.81%)
Mutual labels:  survey
Survey Computer Vision
2020-2021年计算机视觉综述论文分方向整理
Stars: ✭ 207 (+885.71%)
Mutual labels:  survey
Pypsy
psychometrics package, including MIRT(multidimension item response theory), IRT(item response theory),GRM(grade response theory),CAT(computerized adaptive testing), CDM(cognitive diagnostic model), FA(factor analysis), SEM(Structural Equation Modeling) .
Stars: ✭ 123 (+485.71%)
Mutual labels:  survey
Communitydetectioncodes
Some overlapping community detection algorithms (Until 2016). by Yulin Che (https://github.com/CheYulin) for the PhD qualification exam (survey on community detection algorithms)
Stars: ✭ 142 (+576.19%)
Mutual labels:  survey
Qualtrics
Download ⬇️ Qualtrics survey data directly into R!
Stars: ✭ 151 (+619.05%)
Mutual labels:  survey
osposurvey
Open Source Programs (OSPO) Survey
Stars: ✭ 66 (+214.29%)
Mutual labels:  survey
Bayesiandeeplearning Survey
Bayesian Deep Learning: A Survey
Stars: ✭ 214 (+919.05%)
Mutual labels:  survey

Survey Monkey for React Native (react-native-survey-monkey)

Platforms:

  • iOS
  • Android

Installation

Install Node Package

Option A: yarn

yarn add react-native-survey-monkey

Option B: npm

npm install react-native-survey-monkey --save

iOS

Option A: Install with CocoaPods (recommended)

  1. Add this package to your Podfile
pod 'react-native-survey-monkey', path: '../node_modules/react-native-survey-monkey'

Note that this will automatically pull in the appropriate version of the underlying Survey Monkey pod.

  1. Install Pods with
pod install

Option B: Install without CocoaPods (manual approach)

  1. Add the SurveyMonkey dependency to your Podfile
pod 'surveymonkey-ios-sdk', '~> 2.0'
  1. Install Pods with
pod install
  1. Add the XCode project to your own XCode project's Libraries directory from
node_modules/react-native-survey-monkey/ios/RNSurveyMonkey.xcodeproj
  1. Add libRNSurveyMonkey.a to your XCode project target's Linked Binary With Libraries

  2. Update Build Settings

Find Search Paths and add $(SRCROOT)/../node_modules/react-native-survey-monkey/ios with recursive to Framework Search Paths and Library Search Paths

Android

The Android version doesn't require additional changes, please note that that minSdk for this library is Api 21 (Android 5.x).

Usage

import SurveyMonkey from 'react-native-survey-monkey';

Example:

import React, { PureComponent, createRef } from 'react';
import SurveyMonkey from 'react-native-survey-monkey';
import {
  View,
  Text,
  TouchableOpacity
} from 'react-native';

export default class Example extends PureComponent {
  constructor(props) {
    super(props);
    
    this.onTouch = this.onTouch.bind(this);
    this.surveyMonkeyRef = createRef();
  }
  
  onTouch() {
    this.surveyMonkeyRef.current.showSurveyMonkey('some hash');
  }

  render() {
    return (
      <View style={styles.container}>
        <SurveyMonkey ref={ this.surveyMonkeyRef } />
        <TouchableOpacity
          style={ styles.button }
          onPress={ this.onTouch }
        >
           <Text styles={ styles.buttonText }>
             Show survey
           </Text>
        </TouchableOpacity>
      </View>
    );
  }
}

AppRegistry.registerComponent('Example', () => Example);

More features:

Getting respondent data:

  <SurveyMonkey
    ref={ this.ref }
    onRespondentDidEndSurvey={ (data) => {
      console.log('Respondent', data.respondent);
      console.log('Error', data.error);
    } }
  />

'Cancel' button tint color (iOS only):

  <SurveyMonkey
    ref={ this.ref }
    cancelButtonTintColor="#000000"
  />

You can add custom variables:

  onTouch() {
    this.surveyRef.current.showSurveyMonkey('some hash', { var1: 'var1', var2: 'var2', ... });
  }

Schedule Intercept (ios: scheduleInterceptFromViewControllerWithTitle):

  onTouch() {
    this.surveyRef.current.showSurveyMonkey('some hash', null, 'Title');
  }

Schedule Intercept with Params (ios: scheduleInterceptFromViewControllerWithParams):

  onTouch() {
    this.surveyRef.current.showSurveyMonkey('some hash', null, null, {
      title: 'Title',
      body: 'Body',
      positiveActionTitle: 'positive',
      cancelTitle: 'cancel',
      afterInstallInterval: 10,
      afterAcceptInterval: 10,
      afterDeclineInterval: 10
    });
  }

Contact

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].