question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How could I open the drawer using swipe upon a touchable view?

See original GitHub issue

This is my code, alistView is a touchable listview,

            <View style={styles.container}>
                <Drawer ref={(ref) => this._drawer = ref} type="overlay"
                    content={exhibitor_filter}
                    tapToClose={true}

                    side="right"
                    panOpenMask={0.2}
                    openDrawerOffset={0.3} 
                    panCloseMask={0.3}
                    closedDrawerOffset={-3}
                    // styles={drawerStyles}
                    tweenHandler={(ratio) => ({
                        main: { opacity: (2 - ratio) / 2 }
                    }) } >
                    <SearchBar onSearch={(txt) => this.doTextSearch(txt) }></SearchBar>
                    {alistView}
                </Drawer>
            </View>

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:6
  • Comments:20

github_iconTop GitHub Comments

18reactions
rvgroupcommented, Jun 18, 2019

try this:

                panOpenMask={0.2}
                negotiatePan={true}
4reactions
yarilchenkocommented, Oct 12, 2016

@jpsantos7 set captureGestures to true and panOpenMask to 0.01 or 0.02 it’s works for me, but need to swipe from start of screen

Read more comments on GitHub >

github_iconTop Results From Across the Web

Touch anywhere to slide open menu for navigation drawer
The user can bring the navigation drawer onto the screen by swiping from the left edge of the screen or by touching the...
Read more >
Tip: how to swipe to open navigation drawer : r/android_beta
Easier is to use 2 fingers, open the navigation drawer with one finger while keeping another finger on the screen.
Read more >
Enable/disable drawer gesture for a screen #390 - GitHub
I am trying to figure out how to only enable drawer open gestures on root views of a StackNavigator.
Read more >
Navigation Drawer - Android Developers
The user can bring the navigation drawer onto the screen by swiping from the left edge of the screen or by touching the...
Read more >
Gesture swipe up change action - OnePlus Community
Doing the swipe up gesture will open the drawer, but if you stop the gesture by touching the screen instead of the drawer,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found