mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-03 23:35:06 +08:00
Use static constants instead of strings when referring to View Managers and Native Modules
Summary: Using strings to refer to Native Modules and View Managers in ReactPackages are prone to error. The compiler replaces the constants with the actual strings anyway, so using constants gives us better type safety Reviewed By: achen1 Differential Revision: D12843649 fbshipit-source-id: 7a7c6c854c8689193f40df92dc8426a3b37f82c8
This commit is contained in:
committed by
Facebook Github Bot
parent
28278e1b06
commit
803e993e6a
@@ -75,7 +75,7 @@ import com.facebook.react.uimanager.UIManagerModuleListener;
|
||||
public class NativeAnimatedModule extends ReactContextBaseJavaModule implements
|
||||
LifecycleEventListener, UIManagerModuleListener {
|
||||
|
||||
protected static final String NAME = "NativeAnimatedModule";
|
||||
public static final String NAME = "NativeAnimatedModule";
|
||||
|
||||
private interface UIThreadOperation {
|
||||
void execute(NativeAnimatedNodesManager animatedNodesManager);
|
||||
|
||||
Reference in New Issue
Block a user