cd myapp
npm install react-native-woopra --save
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');
});