React-native-swipe-list-view: how do we possible to add footer and header

Created on 29 Mar 2017  路  3Comments  路  Source: jemise111/react-native-swipe-list-view

It will be desired to adding footer and header with no swipe interactions. How can it be done?

Most helpful comment

It's worthwhile to mention that when using the Flatlist implementation you'll need to use the ListFooterComponent and ListHeaderComponent props instead.

https://facebook.github.io/react-native/docs/flatlist.html#listfootercomponent

All 3 comments

@jjhesk have you tried the using the ListView props renderHeader and renderFooter? Whatever components are passed to those props should not have any swipe interactions on them.

https://facebook.github.io/react-native/docs/listview.html#renderfooter

yes it worked. @jemise111

It's worthwhile to mention that when using the Flatlist implementation you'll need to use the ListFooterComponent and ListHeaderComponent props instead.

https://facebook.github.io/react-native/docs/flatlist.html#listfootercomponent

Was this page helpful?
0 / 5 - 0 ratings

Related issues

terencestone picture terencestone  路  5Comments

alexco2 picture alexco2  路  6Comments

ramisalem picture ramisalem  路  5Comments

bohdan145 picture bohdan145  路  6Comments

Slapbox picture Slapbox  路  3Comments