mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 22:38:59 +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
@@ -72,10 +72,12 @@ import static com.facebook.react.bridge.ReactMarkerConstants.UI_MANAGER_MODULE_C
|
||||
* consider implementing a pool
|
||||
* TODO(5483063): Don't dispatch the view hierarchy at the end of a batch if no UI changes occurred
|
||||
*/
|
||||
@ReactModule(name = "RKUIManager")
|
||||
@ReactModule(name = UIManagerModule.NAME)
|
||||
public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
OnBatchCompleteListener, LifecycleEventListener, PerformanceCounter, NativeModuleLogger {
|
||||
|
||||
protected static final String NAME = "UIManager";
|
||||
|
||||
// Keep in sync with ReactIOSTagHandles JS module - see that file for an explanation on why the
|
||||
// increment here is 10
|
||||
private static final int ROOT_VIEW_TAG_INCREMENT = 10;
|
||||
@@ -114,7 +116,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RKUIManager";
|
||||
return NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user