Image

Image wrapper with extra functionality like source transform and assets support.

PropTypes

Prop Type Description
assetName string If provided, image source we be driven from asset name
assetGroup string The asset group. Default 'icons'.
sourceTransformer function Custom source transform handler for manipulating the image source (great for size control)

Usage

import {Image} from 'react-native-ui-lib';

<Image assetName="icon1"/>
<Image assetName="emptyCart" assetGroup="illustrations.placeholders"/>
<Image source={Assets.icons.icon1}/>

results matching ""

    No results matching ""