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.

Sidebar doesn't accept taps anymore?

See original GitHub issue

Hey there,

My sidebar was working great pre-2.1.0 (the last version before < 2), but now when I click an item in the sidebar, the sidebar just closes and the original clicked item isn’t triggered.

Here is my configuration:

  <DrawerIOS
    content={sidebarContent}
    disabled={!!this.props.modalValues.hasModals}
    ref="drawer"
    type="static"
    onOpenStart={() => {
      this._hideKeyboard();
      this._setStatusBarHidden(true);
    }}
    onOpen={() => this.setState({isDrawerOpened: true})}
    onCloseStart={() => this._setStatusBarHidden(false)}
    onClose={() => this.setState({isDrawerOpened: false})}
    openDrawerOffset={0.2}
    panOpenMask={0.2}
    captureGestures="open"
    negotiatePan={true}
    tapToClose={true}
    styles={styles.ios}
    tweenDuration={110}
    tweenEasing="easeInOutCirc">
    {content}
  </DrawerIOS>

Do you see anything wrong that I am doing here that might have broken?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
saviosebcommented, Aug 11, 2016

I’m experiencing the same issue

  • Android running on phone
  • iOS Simulator
  • iOS App running on phone

Any updates about this?

<Drawer
                style={{marginBottom: 20}}
                ref="drawer"
                type="overlay"
        acceptTap={true}
                tapToClose={true}
                openDrawerOffset={0.2}
                panCloseMask={0.2}
        onClose={this.closeSidebar}
                content = {<Sidebar />}
                >

I did not experience this issue when I was running RN 0.24.1 with RN-drawer 2.0.0

But since I’ve updated my RN to 0.31.0 and RN-drawer to 2.2.6 I’m facing this issue.

1reaction
rt2zzcommented, May 10, 2016

Now I cannot recreate either. It seems to be sproradic, maybe related to wether chrome debugger is open? I am open to suggestions for how to resolve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Sidebar] doesn't close on mobile when a hamburger button is ...
Tap on sidebar icon (this will open sidebar); Tap on sidebar icon (in my case, this does not close sidebar) ...
Read more >
How to Disable the Slide Over Sidebar on iPad - OSXDaily
Exiting settings as usual and then using the swipe gesture will then show the sidebar again. More.
Read more >
Why the heck are bookmarks in the safari sidebar auto ...
The Safari Technology Preview (at least in Release 146 that I am testing right now) remembers the collapsed/expanded state of the sidebar. If ......
Read more >
Task Manager Menu Bar and Tabs Are Not Visible
This behavior can occur if Task Manager is running in Tiny Footprint mode. When you double-click the empty space in the border around...
Read more >
If your device doesn't appear in the sidebar when connected ...
Check that the cable is properly connected. · Make sure that the device is unlocked and the Home Screen is visible. · Check...
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