Tile
Tiles like Cards, are a convenient way to display related content about a single subject.
Also receives all TouchableNativeFeedback (Android) or TouchableOpacity (iOS) props.
#
Usage#
Props#
Tile- ImageComponent
- activeOpacity
- caption
- captionStyle
- containerStyle
- contentContainerStyle
- featured
- height
- icon
- iconContainerStyle
- imageContainerStyle
- imageProps
- imageSrc
- overlayContainerStyle
- title
- titleNumberOfLines
- titleStyle
- width
#
Reference#
Tile#
ImageComponentCustom ImageComponent for Tile.
Type | Default |
---|---|
any | None |
#
activeOpacityNumber passed to control opacity on press.
Type | Default |
---|---|
number | None |
#
captionText inside the tilt when tile is featured.
Type | Default |
---|---|
any | None |
#
captionStyleStyling for the caption (optional); You only use this if caption
is a string.
Type | Default |
---|---|
Text Style(Object) | None |
#
containerStyleStyling for the outer tile container.
Type | Default |
---|---|
View style(Object) | None |
#
contentContainerStyleStyling for bottom container when not featured tile.
Type | Default |
---|---|
View style(Object) | None |
#
featuredChanges the look of the tile.
Type | Default |
---|---|
boolean | None |
#
heightHeight for the tile.
Type | Default |
---|---|
number | width * 0.8 |
#
iconIcon Component Props.
Type | Default |
---|---|
View style(Object) | None |
#
iconContainerStyleStyling for the outer icon container.
Type | Default |
---|---|
View style(Object) | None |
#
imageContainerStyleStyling for the image.
Type | Default |
---|---|
View style(Object) | None |
#
imagePropsOptional properties to pass to the image if provided e.g "resizeMode".
Type | Default |
---|---|
ImageProps(Object) | {} |
#
imageSrcSource for the image.
Type | Default |
---|---|
string or ImageSourcePropType | None |
#
overlayContainerStyleStyling for the overlay container when using featured tile.
Type | Default |
---|---|
View style(Object) | None |
#
titleText inside the tile.
Type | Default |
---|---|
string | None |
#
titleNumberOfLinesNumber of lines for Title.
Type | Default |
---|---|
number | None |
#
titleStyleStyling for the title.
Type | Default |
---|---|
Text Style(Object) | None |
#
widthWidth for the tile.
Type | Default |
---|---|
number | Dimensions.get('window').width |