Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/svhawks/react-native-woopra

Promise based Woopra library for react-native
https://github.com/svhawks/react-native-woopra

Last synced: 3 months ago
JSON representation

Promise based Woopra library for react-native

Awesome Lists containing this project

README

        

## Installation

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

## Usage

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

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