public class I18nManagerModule extends ContextBaseJavaModule
NativeModule
that allows JS to set allowRTL and get isRTL status.NativeModule.NativeMethod
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) |
getContext
canOverrideExistingModule, hasConstants, initialize, onCatalystInstanceDestroy
public java.lang.String getName()
require()
this module
from javascript.public java.util.Map<java.lang.String,java.lang.Object> getConstants()
getConstants
in class BaseJavaModule
public void allowRTL(boolean value)
public void forceRTL(boolean value)
public void swapLeftAndRightInRTL(boolean value)