@deltax-sdk/dxmobilesdk-reactnative
v1.0.32
Published
This is the ReactNative Plugin for DeltaX Measurement's Mobile SDK.
Readme
dxmobilesdk-reactnative
Getting started
$ npm install dxmobilesdk-reactnative --save
Usage - Example App.js
//...
import React, { useEffect } from 'react';
import DeltaXMobileSdk from 'dxmobilesdk-reactnative'
//...
export default function App() {
//...
useEffect(() => {
DeltaXMobileSdk.initTrackerInstance('XXXXX');
// Depends on when this needs to be invoked
DeltaXMobileSdk.trackEvent({xb: 'XXXXX', xcv: '1.0', xcc:'USD'});
}, []); // empty dependency array analogous to componentDidMount
//...Running App Android
# Run in emulator / connected device
$ npm run android
# Run with debugger
$ npx react-native start
Running App iOS
$ cd ios && pod install && cd ..
# Run in emulator / connected device
$ npm run ios