mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-08-31 13:41:08 +00:00
Stubbed Android support.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user