abbiio / react-native-walkme-sdk

2 stars 2 forks source link

react-native-walkme-sdk

Getting started

$ npm install react-native-walkme-sdk --save

Mostly automatic installation

$ react-native link react-native-walkme-sdk

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-walkme-sdk and add RNWalkMeSdk.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNWalkMeSdk.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
    • Add import com.reactlibrary.RNWalkMeSdkPackage; to the imports at the top of the file
    • Add new RNWalkMeSdkPackage() to the list returned by the getPackages() method
  2. Append the following lines to android/settings.gradle:
    include ':react-native-walkme-sdk'
    project(':react-native-walkme-sdk').projectDir = new File(rootProject.projectDir,   '../node_modules/react-native-walkme-sdk/android')
  3. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-walkme-sdk')

    Usage

    
    import WalkMeSDK from 'react-native-walkme-sdk';
    ...
    /**
    * Starts ABBI SDK.
    *
    * @param appId The Application Id provided by WalkMe
    * @param appSecretKey The Application Secret key provided by WalkMe
    *
    * To get your Application Id and Application Secret key, login to WalkMe console at https://console.mobile.walkme.com
    * and click the settings icon near your Application Name. You can find more info here - https://walkme-mobile.zendesk.com/hc
    */
    WalkMeSDK.start(appId, appSecretKey)

/**

/**

/**

/**

/**

/**

/**

/**

/**

/**

/**

/**

/**