Skip to content

Commit f2fbfc3

Browse files
axe-fbfacebook-github-bot
authored andcommitted
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
1 parent 75557f1 commit f2fbfc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AsyncStorageModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
public final class AsyncStorageModule
3939
extends ReactContextBaseJavaModule implements ModuleDataCleaner.Cleanable {
4040

41-
protected static final String NAME = "AsyncSQLiteDBStorage";
41+
public static final String NAME = "AsyncSQLiteDBStorage";
4242

4343
// SQL variable number limit, defined by SQLITE_LIMIT_VARIABLE_NUMBER:
4444
// https://raw.githubusercontent.com/android/platform_external_sqlite/master/dist/sqlite3.c

0 commit comments

Comments
 (0)