FrescoModule

constructor(reactContext: ReactApplicationContext?, imagePipeline: ImagePipeline?, clearOnDestroy: Boolean = true, hasBeenInitializedExternally: Boolean = false)

Create a new Fresco module with a default configuration (or the previously given configuration via .FrescoModule.

Parameters

reactContext

the context to use

imagePipeline

the Fresco image pipeline to use

clearOnDestroy

whether to clear the memory cache in onHostDestroy: this should be true for pure RN apps and false for apps that use Fresco outside of RN as well

hasBeenInitializedExternally

whether Fresco has already been initialized


constructor(reactContext: ReactApplicationContext?, clearOnDestroy: Boolean = true, imagePipelineConfig: ImagePipelineConfig? = null)