rn-pendo-sdk
Version:
Pendo Mobile React Native SDK
1 lines • 2.52 kB
JavaScript
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.NativeParams=void 0;var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _pendoTypes=require("./pendoTypes");var NativeParams=exports.NativeParams=(0,_createClass2.default)(function NativeParams(){var _this=this;(0,_classCallCheck2.default)(this,NativeParams);this.clickableElements=null;this.retroactiveScreenId=null;this.navigationBarTag=null;this.tabBarTag=null;this.materialBottomTabTag=null;this.isNativeStack=false;this.bottomBarTag=null;this.rootTags=[];this.drawerTag=null;this.drawerOpen=false;this.nativeIDs=null;this.modalTag=null;this.modalType=_pendoTypes.ModalType.None;this.apiTriggeredScan=false;this.bottomSheetTags=[];this.screenHierarchy=null;this.error=null;this.info=function(){var _ref,_this$screenHierarchy,_this$navigationBarTa,_this$tabBarTag,_this$materialBottomT,_this$bottomBarTag,_this$drawerTag,_this$drawerOpen,_this$isNativeStack,_this$nativeIDs,_this$modalTag,_this$apiTriggeredSca,_this$bottomSheetTags;return{screenHierarchy:(_ref=(_this$screenHierarchy=_this.screenHierarchy)!=null?_this$screenHierarchy:_this.retroactiveScreenId)!=null?_ref:undefined,rootTags:_this.rootTags===null||_this.rootTags.length===0?[]:_this.rootTags,rootTag:_this.rootTags===null||_this.rootTags.length===0?undefined:_this.rootTags[_this.rootTags.length-1],navigationBarTag:(_this$navigationBarTa=_this.navigationBarTag)!=null?_this$navigationBarTa:undefined,tabBarTag:(_this$tabBarTag=_this.tabBarTag)!=null?_this$tabBarTag:undefined,materialBottomTabTag:(_this$materialBottomT=_this.materialBottomTabTag)!=null?_this$materialBottomT:undefined,bottomBarTag:(_this$bottomBarTag=_this.bottomBarTag)!=null?_this$bottomBarTag:undefined,drawerTag:(_this$drawerTag=_this.drawerTag)!=null?_this$drawerTag:undefined,drawerOpen:(_this$drawerOpen=_this.drawerOpen)!=null?_this$drawerOpen:undefined,isNativeStack:(_this$isNativeStack=_this.isNativeStack)!=null?_this$isNativeStack:undefined,nativeIDs:(_this$nativeIDs=_this.nativeIDs)!=null?_this$nativeIDs:undefined,modalTag:(_this$modalTag=_this.modalTag)!=null?_this$modalTag:undefined,apiTriggeredScan:(_this$apiTriggeredSca=_this.apiTriggeredScan)!=null?_this$apiTriggeredSca:undefined,bottomSheetTags:(_this$bottomSheetTags=_this.bottomSheetTags)!=null?_this$bottomSheetTags:[]};};});