Promise based Woopra library for react-native
Switch branches/tags
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc Add eslint configuration file Aug 24, 2015
.gitignore Add .gitignore Aug 24, 2015
LICENSE Initial commit Aug 24, 2015
README.md Update README.md Aug 25, 2015
Woopra.js Add website parameter Aug 25, 2015
package.json Update dependencies and keywords, bump version Nov 11, 2015

README.md

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');
});