react-native-woopra
v1.1.0-rc.1
Published
Promise based Woopra library for react-native
Downloads
9
Maintainers
Readme
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: '[email protected]',
name: 'John Doe',
}).track('login', {
method: 'email',
}).then(() => {
console.log('Event logged');
}).catch(() => {
console.log('Event failed to log');
});