Skip to content

more-retail/react-native-more-trace

react-native-more-trace

To track the events

Installation

npm install react-native-more-trace

Usage

import Trace from 'react-native-more-trace';

// Initialise the sdk
 Trace.init({
    api_key: '',
    url: '',
    env: 'dev',
  });

// set the user id
Trace.setUserId('12345')

//track events
 Trace.trackEvents(eventName, payload);

 //Clear the data on logut
 Trace.clearData();

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library