Hector-Chong / native-wechat

A React Native library for supporting Wechat APIs on Android and iOS

Home Page:https://native-wechat.hector.im

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Error in NativeWechatModuleImpl.java and NativeWechatModule

catericy opened this issue · comments

Hi, Hector
I found some problems。

NativeWechatModuleImpl.java

  public void registerApp(ReadableMap request) {
    appid = request.getString("appid");  
    registered = true;

    wxApi = WXAPIFactory.createWXAPI(reactContext, id, true);  //not id, id => appid
    wxApi.registerApp(id);  //not id, id => appid

NativeWechatModule.java

  public void registerApp(String id) { // not Stirng, Sting => ReadableMap ?
    moduleImpl.registerApp(id);
  }
  

Thanks! This is really a mistake. Already fixed.