Nativebase: How to close Swipeable list row manually

Created on 10 Oct 2017  路  2Comments  路  Source: GeekyAnts/NativeBase

  1. row is opened by swiping right or left
  2. now want to close it back by clicking on a button outside of list, how should I achieve this.
  3. In react-native-swipeout , they are checking it on rowId and sectionid and provided a autoclose property for that.

-one more thing listview seems pretty slow aren't you planning to update this component with Flatlist

Most helpful comment

@manjeets12 you can use

rowMap[`${secId}${rowId}`].props.closeRow();

like in deleteRow function used here

All 2 comments

@manjeets12 you can use

rowMap[`${secId}${rowId}`].props.closeRow();

like in deleteRow function used here

closing the issue due to no response

Was this page helpful?
0 / 5 - 0 ratings