mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-03 15:24:58 +08:00
strip off RK/RCT prefix from NativeModules
Reviewed By: javache Differential Revision: D4487530 fbshipit-source-id: ea16720dc15e490267ad244c43ea9d237f81e353
This commit is contained in:
committed by
Facebook Github Bot
parent
b6f494c313
commit
29616e3122
@@ -56,9 +56,11 @@ import com.facebook.react.module.annotations.ReactModule;
|
||||
* {@link NativeModule} that allows JS to interact with the photos on the device (i.e.
|
||||
* {@link MediaStore.Images}).
|
||||
*/
|
||||
@ReactModule(name = "RKCameraRollManager")
|
||||
@ReactModule(name = CameraRollManager.NAME)
|
||||
public class CameraRollManager extends ReactContextBaseJavaModule {
|
||||
|
||||
protected static final String NAME = "CameraRollManager";
|
||||
|
||||
private static final String ERROR_UNABLE_TO_LOAD = "E_UNABLE_TO_LOAD";
|
||||
private static final String ERROR_UNABLE_TO_LOAD_PERMISSION = "E_UNABLE_TO_LOAD_PERMISSION";
|
||||
private static final String ERROR_UNABLE_TO_SAVE = "E_UNABLE_TO_SAVE";
|
||||
@@ -100,7 +102,7 @@ public class CameraRollManager extends ReactContextBaseJavaModule {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RKCameraRollManager";
|
||||
return NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -52,9 +52,11 @@ import com.facebook.react.module.annotations.ReactModule;
|
||||
/**
|
||||
* Native module that provides image cropping functionality.
|
||||
*/
|
||||
@ReactModule(name = "RKImageEditingManager")
|
||||
@ReactModule(name = ImageEditingManager.NAME)
|
||||
public class ImageEditingManager extends ReactContextBaseJavaModule {
|
||||
|
||||
protected static final String NAME = "ImageEditingManager";
|
||||
|
||||
private static final List<String> LOCAL_URI_PREFIXES = Arrays.asList(
|
||||
"file://", "content://");
|
||||
|
||||
@@ -98,7 +100,7 @@ public class ImageEditingManager extends ReactContextBaseJavaModule {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RKImageEditingManager";
|
||||
return NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user