Package 

Class ImageStoreManager

  • All Implemented Interfaces:
    com.facebook.react.bridge.NativeModule , com.facebook.react.bridge.ReactModuleWithSpec , com.facebook.react.turbomodule.core.interfaces.TurboModule

    
    public class ImageStoreManager
    extends NativeImageStoreAndroidSpec
                        
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String NAME
    • Method Summary

      Modifier and Type Method Description
      String getName()
      void getBase64ForTag(String uri, Callback success, Callback error) Calculate the base64 representation for an image.
      • Methods inherited from class com.facebook.fbreact.specs.NativeImageStoreAndroidSpec

        getBase64ForTag
      • Methods inherited from class com.facebook.react.bridge.BaseJavaModule

        canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getBase64ForTag

         void getBase64ForTag(String uri, Callback success, Callback error)

        Calculate the base64 representation for an image. The "tag" comes from iOS naming.

        Parameters:
        uri - the URI of the image, file:// or content://
        success - callback to be invoked with the base64 string as the only argument
        error - callback to be invoked on error (e.g.