
package com.reactlibrary;

import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.Callback;
import com.pgyersdk.update.PgyUpdateManager;

public  class RNPgySdkModule extends ReactContextBaseJavaModule {

  private final ReactApplicationContext reactContext;

  public RNPgySdkModule(ReactApplicationContext reactContext) {
    super(reactContext);
    this.reactContext = reactContext;
  }

  @Override
  public String getName() {
    return "RNPgySdk";
  }


  @ReactMethod
  public void checkUpdate(){
    PgyUpdateManager.register(reactContext.getCurrentActivity());
  }
}



