Welcome to the official Whatfix React Native SDK. This article explains how to install and update the Whatfix React Native SDK in your project.
Node.js Environment
For Android : - minSdkVersion - 19
For iOS : - iOS 8.0+, Objective-C / Swift 5.2
To integrate Whatfix react package into your current project root, please run the below command from the terminal.
$ npm install rn-whatfix --save
Import Whatfix module in your App.js file
import RNWhatfixModule from 'rn-whatfix';
Initialize Whatfix in your App.js file
RNWhatfixModule.initialize(<ent_id>);
Replace <ent_id> with your Whatfix account ID. To get your ENT ID, email us at support@whatfix.com or get in touch with your Account Manager.
Set screen for Segmentation using
RNWhatfixModule.setScreenId(<screenName>);