1.4.1 • Published 2 years ago

react-native-module-fhp-ios v1.4.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

react-native-module-fhp-ios

React Native module with FHP

Installation

npm install react-native-module-fhp-ios

Android

Add to the project android/build.gradle file:

apply from: "../node_modules/react-native-module-fhp-ios/android/fhp.gradle"

Usage

import { setLogURL, enableDebugLogs, setCustomerId, run, setTargetURL, enableCapability, Capability, disableCapability, stop } from 'react-native-module-fhp-ios';

// ...

  enableDebugLogs();
  setCustomerId("react-native-i", (error: any) => {
    console.log(error);
  });
  setTargetURL("https://group-ib.com", (error: any) => {
    console.log(error);
  });
  enableCapability(Capability.Swizzle, (error: any, isRun: Boolean) => {
    if (error) {
      console.log(error);
    }
    console.log("Capability run status " + isRun);
  });
  run((error: any) => {
    console.log("Run error console");
    console.log(error);
  });