Stubbed Android support.

This commit is contained in:
Lochlan Wansbrough
2015-09-21 20:22:56 -07:00
parent 9fe38ebb86
commit 3172ed7060
3 changed files with 72 additions and 0 deletions
@@ -0,0 +1,32 @@
package com.lwansbrough.RCTCamera;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.Callback;
/**
* {@link NativeModule}
*/
public class RCTCameraModule extends ReactContextBaseJavaModule {
ReactApplicationContext reactContext;
public RCTCameraModule(ReactApplicationContext reactContext) {
super(reactContext);
this.reactContext = reactContext;
}
@Override
public String getName() {
return "RCTCamera";
}
@ReactMethod
public void test(ReadableMap options, Callback callback) {
callback.invoke(null, "test");
}
}