public class I18nManagerModule extends ContextBaseJavaModule
NativeModule that allows JS to set allowRTL and get isRTL status.NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
I18nManagerModule(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
allowRTL(boolean value) |
void |
forceRTL(boolean value) |
java.util.Map<java.lang.String,java.lang.Object> |
getConstants() |
java.lang.String |
getName() |
void |
swapLeftAndRightInRTL(boolean value) |
getContextcanOverrideExistingModule, hasConstants, initialize, invalidate, onCatalystInstanceDestroypublic static final java.lang.String NAME
public java.lang.String getName()
require() this module
from javascript.public java.util.Map<java.lang.String,java.lang.Object> getConstants()
getConstants in class BaseJavaModulepublic void allowRTL(boolean value)
public void forceRTL(boolean value)
public void swapLeftAndRightInRTL(boolean value)