We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like the panel to open/close on double click on handler.
I've tried adding TouchableWithoutFeedback around handler which works, but now I can't drag it normally.
let backCount = 0 let backTimer = false return ( <SlidingUpPanel allowDragging={allowDragging} friction={0.4} containerStyle={styles.panel} ref={refSlider} draggableRange={draggableRange} onDragEnd={(value, gestureState) => {setPanelLocation(value)}} > {dragHandler => ( <Layout style={styles.handler}> <TouchableWithoutFeedback onPress={() => { backCount++ if (backCount == 2) { clearTimeout(backTimer) toggle() } else { backTimer = setTimeout(() => { backCount = 0 }, 3000) } }} > <Layout style={dragHandlerStyle} {...dragHandler}> { dragHandlerTitle } </Layout> </TouchableWithoutFeedback> <ScrollView onTouchStart={() => setAllowDragging(false)} onTouchEnd={() => setAllowDragging(true)} onTouchCancel={() => setAllowDragging(true)} style={styles.container} > { panelView } </ScrollView> </Layout> )} </SlidingUpPanel> )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue Description
I would like the panel to open/close on double click on handler.
Steps to Reproduce / Code Snippets / Screenshots
I've tried adding TouchableWithoutFeedback around handler which works, but now I can't drag it normally.
Environment
The text was updated successfully, but these errors were encountered: