Open chiaraperino opened 5 years ago
I have resolved with component: View and onPress props:
<Swipeout autoClose backgroundColor="transparent" right={[{
onPress: () => console.log("press"),
component: (
<View style={styles.deleteButton}>
<Icon name="delete" size={propIcon(25)} color={colors.WHITE} />
</View>
),
}]}>
When I use custom component (Button react-native-elements), onPress doesn't close the swipe with autoClose = true