survezy_widget
v1.0.50
Published
Customizable widget for survezy's surveys.
Downloads
15
Readme
Survezy Widget
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://survezyapi.wimwisure.com/survezy/1.0.50/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)