mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-15 12:12:31 +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
@@ -29,9 +29,11 @@ import com.facebook.react.module.annotations.ReactModule;
|
||||
* Module that records debug information during transitions (animated navigation events such as
|
||||
* going from one screen to another).
|
||||
*/
|
||||
@ReactModule(name = "AnimationsDebugModule")
|
||||
@ReactModule(name = AnimationsDebugModule.NAME)
|
||||
public class AnimationsDebugModule extends ReactContextBaseJavaModule {
|
||||
|
||||
protected static final String NAME = "AnimationsDebugModule";
|
||||
|
||||
private @Nullable FpsDebugFrameCallback mFrameCallback;
|
||||
private @Nullable final DeveloperSettings mCatalystSettings;
|
||||
|
||||
@@ -44,7 +46,7 @@ public class AnimationsDebugModule extends ReactContextBaseJavaModule {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "AnimationsDebugModule";
|
||||
return NAME;
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
|
||||
@@ -22,9 +22,11 @@ import com.facebook.react.module.annotations.ReactModule;
|
||||
/**
|
||||
* Module that exposes the URL to the source code map (used for exception stack trace parsing) to JS
|
||||
*/
|
||||
@ReactModule(name = "RCTSourceCode")
|
||||
@ReactModule(name = SourceCodeModule.NAME)
|
||||
public class SourceCodeModule extends BaseJavaModule {
|
||||
|
||||
public static final String NAME = "SourceCode";
|
||||
|
||||
private final ReactContext mReactContext;
|
||||
|
||||
public SourceCodeModule(ReactContext reactContext) {
|
||||
@@ -33,7 +35,7 @@ public class SourceCodeModule extends BaseJavaModule {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RCTSourceCode";
|
||||
return NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user