Skip to content
Pavlo Aksonov edited this page Aug 19, 2015 · 4 revisions

Welcome to the react-native-tableview wiki!

TableView attributes

  • selectedValue (optional) - value to select. TableView.Cell which have 'value' the same as selectedValue will be marked with "checkmark". Also the component will scroll to this cell to make it visible.
  • onPress(event) - event handler raised after selecting cell. Event attributes
    • selectedIndex - index of selected cell
    • selectedSection - index of selected section
    • value - value of selected cell (optionally, cell contains 'value' attribute)
    • also event contains all key/values of selected cell, so user could put some custom attributes into cells.

TableView children structure

<TableView.Section ..section params... >
   <TableView.Item ..cell params.. >Item1</TableView.Item>
   <TableView.Item ..cell params.. >Item2</TableView.Item>
   <TableView.Item ..cell params.. >Item3</TableView.Item>
   <TableView.Item ..cell params.. >Item4</TableView.Item>
</TableView.Section>
Clone this wiki locally