Smartech provides a React-native SDK that enables app developers to track and engage their users and view valuable analytical insights on our powerful Smartech dashboard.
This guide will show you how to install the Smartech React-native SDK in your React-native project.
Installing Smartech React Native
Install Smartech React Native plugin using the npm package manager. And then link your native dependencies :
npm install --save smartech-reactnative-module react-native
link smartech-reactnative-module
Install Android SDK
If you are building your Android app, follow the Basic Setup steps to install the Android SDK.
Also you need to add the below code inside the onCreate method of your MainActivity class.
SmartechReactNativeModule.init(getIntent());
SmartechReactNativeModule.init(intent);
Install iOS SDK
If you are building your iOS app, follow the Basic Setup steps to install the iOS SDK.
Initialize the SDK
Grab a reference to the Smartech React Native library in your JavaScript file.
const SmartechSDK = require('smartech-reactnative-module');
Choose Features
Now that the basic setup is completed, you can choose to move to either of below features:
Updated about a month ago