svhawks / react-native-woopra

Promise based Woopra library for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

cd myapp
npm install react-native-woopra --save

Usage

const Woopra = require('react-native-woopra').shared();
Woopra.domain = 'yourdomain.com';

Woopra.client({
  app: 'react-native',
}).identify({
  email: 'john@doe.com',
  name: 'John Doe',
}).track('login', {
  method: 'email',
}).then(() => {
  console.log('Event logged');
}).catch(() => {
  console.log('Event failed to log');
});

About

Promise based Woopra library for react-native

License:MIT License


Languages

Language:JavaScript 100.0%