Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

use custom component with autoClose #314

Open
chiaraperino opened this issue Dec 12, 2018 · 1 comment
Open

use custom component with autoClose #314

chiaraperino opened this issue Dec 12, 2018 · 1 comment

Comments

@chiaraperino
Copy link

When I use custom component (Button react-native-elements), onPress doesn't close the swipe with autoClose = true

@chiaraperino
Copy link
Author

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>
    ),
}]}>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant