I have 2 hidden buttons. I show both of them if item.item.showViewJobButton is true. If not true then I only show one button.
Even If I show only one hidden button, not showed button also occupies area.
Can I change rightOpenValue conditionally?
<SwipeListView
data={filteredNotificationData}
renderItem={renderItem}
renderHiddenItem={renderHiddenItem}
rightOpenValue={-194} // I want to change this value conditionally
recalculateHiddenLayout={true} // This is only work on rotation I believe
onRowDidOpen={onRowDidOpen}
disableRightSwipe
keyExtractor={item => item.id.toString()}
closeOnScroll
/>
I have 2 hidden buttons. I show both of them if
item.item.showViewJobButton
istrue
. If nottrue
then I only show one button.Even If I show only one hidden button, not showed button also occupies area.
Can I change
rightOpenValue
conditionally?