public class ImageStoreManager extends ReactContextBaseJavaModule
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 |
---|
ImageStoreManager(ReactApplicationContext reactContext) |
Modifier and Type | Method and Description |
---|---|
void |
getBase64ForTag(java.lang.String uri,
Callback success,
Callback error)
Calculate the base64 representation for an image.
|
java.lang.String |
getName() |
getCurrentActivity, getReactApplicationContext
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
public static final java.lang.String NAME
public ImageStoreManager(ReactApplicationContext reactContext)
public java.lang.String getName()
require()
this module
from javascript.public void getBase64ForTag(java.lang.String uri, Callback success, Callback error)
uri
- the URI of the image, file:// or content://success
- callback to be invoked with the base64 string as the only argumenterror
- callback to be invoked on error (e.g. file not found, not readable etc.)