Fixed zoom issue Fixed Fabric (new arch) compile issues on both platforms Fixed included broken codegen lib code Fixed broken .h import paths to avoid setting custom build settings Fixed potential memory issue by disabling view recycling Added Fabric (new arch) support for camera view component Added RN 0.81 for example Added RN 0.79 for main lib Added helper for re-running codegen Added gitignore for Android codegen making a podspec Added support for scanThrottleDelay on Android Added includesGeneratedCode to package.json to indicate changes Rewrote optional int props to use -1 instead due to RN bug Moved to Obj-C with C++ support (.mm) to avoid C++ compile issues
49 lines
1.4 KiB
Java
49 lines
1.4 KiB
Java
|
|
/**
|
|
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
*
|
|
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
* once the code is regenerated.
|
|
*
|
|
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
*
|
|
* @nolint
|
|
*/
|
|
|
|
package com.facebook.fbreact.specs;
|
|
|
|
import com.facebook.proguard.annotations.DoNotStrip;
|
|
import com.facebook.react.bridge.Promise;
|
|
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.turbomodule.core.interfaces.TurboModule;
|
|
import javax.annotation.Nonnull;
|
|
import javax.annotation.Nullable;
|
|
|
|
public abstract class NativeCameraKitModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
public static final String NAME = "RNCameraKitModule";
|
|
|
|
public NativeCameraKitModuleSpec(ReactApplicationContext reactContext) {
|
|
super(reactContext);
|
|
}
|
|
|
|
@Override
|
|
public @Nonnull String getName() {
|
|
return NAME;
|
|
}
|
|
|
|
@ReactMethod
|
|
@DoNotStrip
|
|
public abstract void capture(@Nullable ReadableMap options, @Nullable Double tag, Promise promise);
|
|
|
|
@ReactMethod
|
|
@DoNotStrip
|
|
public abstract void requestDeviceCameraAuthorization(Promise promise);
|
|
|
|
@ReactMethod
|
|
@DoNotStrip
|
|
public abstract void checkDeviceCameraAuthorizationStatus(Promise promise);
|
|
}
|