Nativebase: Creating Lists with Sections

Created on 1 Jun 2017  路  1Comment  路  Source: GeekyAnts/NativeBase

RE: https://github.com/GeekyAnts/NativeBase/blob/master/src/basic/List.js#L15

react-native, react and native-base version

RN 0.43, NB 2.1.2

Expected behaviour

To be able to pass in a hash of sections and rows, with section data for labels (like you can with ListView).

Actual behaviour

Can only pass in a "flat" single section list, as we assume dataArray coded that way, using cloneWithRows. See: http://richardkho.com/section-headers-in-react-native-listview-components/

enhancement

>All comments

@njt1982 NativeBase List, through dataArray accepts only single section list. For more complex data list you can use RN ListView.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bundas picture Bundas  路  3Comments

nschurmann picture nschurmann  路  3Comments

bsiddiqui picture bsiddiqui  路  3Comments

omerdn1 picture omerdn1  路  3Comments

mcpracht picture mcpracht  路  3Comments