Skip to content

svhawks/react-native-woopra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Promise based Woopra library for react-native

Resources

License

Stars

Watchers

Forks

Packages

No packages published