survezy_widget

1.0.48 • Public • Published

Survezy Widget

NPM JavaScript Style Guide

Usage

React

> npm install survezy_widget
import React, { Component } from 'react'

import { Survezy } from 'survezy_widget'
import 'survezy_widget/dist/index.css'

class Example extends Component {
  render() {
     <Survezy eventId={"eventId"} darkMode />
  }
}

HTML

<!doctype html>
<html>

<head>
  <meta charset="utf-8">
  <title>Survezy JS</title>
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <script defer="defer" src="https://api.survezy.in/survezy/1.0.26/survezy.js"></script>
</head>

<body>
  <button type="button"
    onClick="(function(){survezy.Show('eventId');})();">
    Open Survey
  </button>

</body>

</html>

Android

Install via gradle

  allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

If your gradle version is higher than 6.5, add the below code in settings.gradle.

dependencyResolutionManagement {
    ...
    repositories {
        ...
        maven{url 'https://jitpack.io'}
    }
}

Add dependency in your app's build.gradle file

defaultConfig {
    ....
    minSdkVersion 21
}

dependencies {
    implementation 'com.github.wimwisure:survezy_android:1.3'
}

Uses

val survezy = Survezy(context)

survezy.show(eventId)

Readme

Keywords

none

Package Sidebar

Install

npm i survezy_widget

Weekly Downloads

2

Version

1.0.48

License

MIT

Unpacked Size

502 kB

Total Files

7

Last publish

Collaborators

  • wimwisure