Android Error in NativeWechatModuleImpl.java and NativeWechatModule
catericy opened this issue · comments
Eric Targaryen commented
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);
}
Héctor Chong commented
Thanks! This is really a mistake. Already fixed.