1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Init project.

This commit is contained in:
jaywcjlove
2020-07-07 17:44:10 +08:00
commit a804173acd
75 changed files with 10257 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package com.uiwjs;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.Callback;
public class AlipayModule extends ReactContextBaseJavaModule {
private final ReactApplicationContext reactContext;
public AlipayModule(ReactApplicationContext reactContext) {
super(reactContext);
this.reactContext = reactContext;
}
@Override
public String getName() {
return "Alipay";
}
@ReactMethod
public void sampleMethod(String stringArgument, int numberArgument, Callback callback) {
// TODO: Implement some actually useful functionality
callback.invoke("Received numberArgument: " + numberArgument + " stringArgument: " + stringArgument);
}
}