-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
- Should wrap using the same standard internal const
cellClassas itsclassName -
childrenas a prop determines whether the component should render by composition and will use the samewrapfunction as before to simply wrap the children around a div withcellClass -
classPrefix: a string that gives the cell'scellClassa prefix that precedes, for example_PREFIX_list-cell__containerif this prop is givenPREFIXin the prop. -
onPress: a function that gets called with an event listener as its parameter whenever the cell notices aclickorpressaction -
text: an optional string representing the main text label of the cell. If no secondary is provided it will render at the vertical center -
secondaryText: another optional string representing the secondary text label.- Note there can be no text labels at all, and they default to undefined. There can be only a main text label, or there can be both. There can't be only a
secondaryTextprop.
- Note there can be no text labels at all, and they default to undefined. There can be only a main text label, or there can be both. There can't be only a
-
leftAccessory: an optional *a valid template string, function return a node, node, or array of nodes. An accessory is any extra UI elements that live inside the cell (icons, controls, images, svg, etc.). Defaults toundefinedand will simply just not render if not specified. A string can be given that has a valid value for a predefined template for the accessory view. Template Accessory components will be created later -
rightAccessory: same as above, just gets rendered to the right most part of the cell -
keyExtractor: an optional string or a function that returns a string that specifies the key to the cells inside since this is likely to be an iterated component. If none is specified, it will simply copytext. -
styles: an optionalobjectcontaining all the CSS styles to be rendered via react as opposed to CSS