mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Make RCTCameraRollManager TurboModule-compatible
Summary: See title. Changelog: [iOS][Added] - Make RCTCameraRollManager TurboModule-compatible Reviewed By: PeteTheHeat Differential Revision: D18148892 fbshipit-source-id: de49e368615032b2c4de129dc55191c562cbdfbe
This commit is contained in:
committed by
Facebook Github Bot
parent
c29ec64d94
commit
1d315608ef
+37
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
|
||||
* directory of this source tree.
|
||||
*
|
||||
* <p>Generated by an internal genrule from Flow types.
|
||||
*
|
||||
* @generated
|
||||
* @nolint
|
||||
*/
|
||||
|
||||
package com.facebook.fbreact.specs;
|
||||
|
||||
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.ReactModuleWithSpec;
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
import com.facebook.react.bridge.ReadableMap;
|
||||
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
||||
|
||||
public abstract class NativeCameraRollManagerSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule {
|
||||
public NativeCameraRollManagerSpec(ReactApplicationContext reactContext) {
|
||||
super(reactContext);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public abstract void getPhotos(ReadableMap params, Promise promise);
|
||||
|
||||
@ReactMethod
|
||||
public abstract void deletePhotos(ReadableArray assets, Promise promise);
|
||||
|
||||
@ReactMethod
|
||||
public abstract void saveToCameraRoll(String uri, String type, Promise promise);
|
||||
}
|
||||
Reference in New Issue
Block a user