Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 428 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 428 Bytes

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