Fresco Module
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
react Context
the context to use
image Pipeline
the Fresco image pipeline to use
clear On Destroy
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
has Been Initialized Externally
whether Fresco has already been initialized
constructor(reactContext: ReactApplicationContext?, clearOnDestroy: Boolean = true, imagePipelineConfig: ImagePipelineConfig? = null)