Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prevent double clicking on Drawer opening icon #8

Open
ShaikhKabeer opened this issue Jan 2, 2018 · 3 comments
Open

How to prevent double clicking on Drawer opening icon #8

ShaikhKabeer opened this issue Jan 2, 2018 · 3 comments

Comments

@ShaikhKabeer
Copy link

Whenever I'm clicking drawer opening icon for multiple times, it goes into infinite state and opening and closing continuously. I need help.

@rimiti
Copy link

rimiti commented Jan 27, 2018

headerLeft: <View style={styles.leftIconContainer}>
      <Icon name="bars" style={styles.icon} onPress={() => {
        (navigation.state.index === 0) ? navigation.navigate('DrawerOpen') : navigation.navigate('DrawerClose')
      }} />
    </View>,

It will fix it ;)

@ShaikhKabeer
Copy link
Author

I've done this by using debounce from 'lodash' library. Anyway Thanks @rimiti

@rimiti
Copy link

rimiti commented Sep 25, 2018

You're welcome, can you close the issue ? 🚀🙏🏻

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

No branches or pull requests

2 participants