You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should wrap using the same standard internal const cellClass as its className
children as a prop determines whether the component should render by composition and will use the same wrap function as before to simply wrap the children around a div with cellClass
classPrefix: a string that gives the cell's cellClass a prefix that precedes, for example _PREFIX_list-cell__container if this prop is given PREFIX in the prop.
onPress: a function that gets called with an event listener as its parameter whenever the cell notices a click or press action
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 secondaryText prop.
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 to undefined and 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 copy text.
styles: an optional object containing all the CSS styles to be rendered via react as opposed to CSS
The text was updated successfully, but these errors were encountered:
* ListCell now has these props...
* rightAccessory: for passing a custom component
* rightAccessoryType: a template for a template acsry.
* rightAccessoryOnPress: an event handler for for acsry.
* NOTE: styles have been commented out for all listcells
* this is because a proper validator is needed
cellClass
as itsclassName
children
as a prop determines whether the component should render by composition and will use the samewrap
function as before to simply wrap the children around a div withcellClass
classPrefix
: a string that gives the cell'scellClass
a prefix that precedes, for example_PREFIX_list-cell__container
if this prop is givenPREFIX
in the prop.onPress
: a function that gets called with an event listener as its parameter whenever the cell notices aclick
orpress
actiontext
: an optional string representing the main text label of the cell. If no secondary is provided it will render at the vertical centersecondaryText
: another optional string representing the secondary text label.secondaryText
prop.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 toundefined
and 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 laterrightAccessory
: same as above, just gets rendered to the right most part of the cellkeyExtractor
: 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 optionalobject
containing all the CSS styles to be rendered via react as opposed to CSSThe text was updated successfully, but these errors were encountered: