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

bsiddiqui picture bsiddiqui  路  3Comments

muthuraman007 picture muthuraman007  路  3Comments

georgemickael-b picture georgemickael-b  路  3Comments

eggybot picture eggybot  路  3Comments

sihemhssine picture sihemhssine  路  3Comments