strip off RK/RCT prefix from NativeModules

Reviewed By: javache

Differential Revision: D4487530

fbshipit-source-id: ea16720dc15e490267ad244c43ea9d237f81e353
This commit is contained in:
Aaron Chiu 2017-01-31 04:49:58 -08:00 committed by Facebook Github Bot
parent bf3704ebd8
commit ca8ef47785
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
/**