List
Extends:
react-native~Component → List
List Compoent
Constructor Summary
Public Constructor | ||
public |
constructor(props: object) |
Public Constructors
public constructor(props: object) source
Params:
Name | Type | Attribute | Description |
props | object | ||
props.primaryText | string | The primary text of a List |
|
props.secondaryText | string |
|
The secondary text of a List |
props.caption | string |
|
The least distinguishing content. |
props.leftIcon | Icon |
|
Left icon. Size should be 24. |
props.rightIcon | Icon |
|
Right icon. Size should be 24. |
props.leftAvatar | Avatar |
|
Left avatar. Size should be 40. |
props.rightAvatar | Avatar |
|
Right avatar. Size should be 40. |
props.lines | number |
|
You must specify this prop when secondary lines large than 1. Lines = Secondary lines + 1. |
props.primaryColor | string |
|
The color of primary text. |
props.onPress | function |
|
The primary action of a list. When user press the list will trigger this function. |
props.onLeftIconClick | function |
|
The secondary action of a list. When user press the left icon will trigger this function. |
props.onRightIconClick | function |
|
The secondary action of a list. When user press the right icon will trigger this function. |
props.secondaryTextMoreLine | {text: string, style: object} [] |
|
Pass an array when secondary text breaks some lines. |