Coder Social home page Coder Social logo

romain-spielmann / survicate-expo-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from survicate/survicate-react-native-sdk

0.0 0.0 0.0 413 KB

JavaScript 2.64% Ruby 16.03% Objective-C 1.89% Java 35.67% TypeScript 31.39% Objective-C++ 12.39%

survicate-expo-sdk's Introduction

@survicate/react-native-survicate npm version

Requirements:

  • iOS at least on version 12.0
  • Android at least on version 5
  • React Native at least on version 0.60.0

Expo support

This package is not available in the Expo Go app. Learn how you can use it with custom dev clients.

Getting started

$ npm install @survicate/react-native-survicate --save

Mostly automatic installation

$ react-native link @survicate/react-native-survicate

Configuring Survicate Bindings for iOS

  • Add your Survicate workspace key to Info.plist
	<key>Survicate</key>
	<dict>
		<key>WorkspaceKey</key>
		<string>YOUR_WORKSPACE_KEY</string>
	</dict>
  • run command pod install in your ios directory

Configuring Survicate Bindings for Android

  • Add maven repository to your project build.gradle located under android directory
allprojects {
    repositories {
        // ...
        maven { url 'https://repo.survicate.com' }
    }
}
  • Add your Survicate workspace key to AndroidManifest.xml
<application
    android:name=".MyApp"
>
    <!-- ... -->
    <meta-data android:name="com.survicate.surveys.workspaceKey" android:value="YOUR_WORKSPACE_KEY"/>
</application>

Usage

import Survicate from "@survicate/react-native-survicate";

Survicate.initialize();
Survicate.invokeEvent("eventName");
Survicate.enterScreen("screenName");
Survicate.leaveScreen("screenName");
Survicate.setUserId("screenName");
Survicate.setUserTrait("traitName", "traitValue");
Survicate.reset();

Changelog

The Survicate Mobile SDK change log can be found here

survicate-expo-sdk's People

Contributors

j-brzozowski avatar kamilk-survicate avatar kamilkk avatar michal-survicate avatar romain-spielmann avatar survicatepawelgodlewski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.