root-two/react-native-drawer

pressing a button on drawer doesn't execute the onPress function because drawer wish to execute closing

DevBkIL opened this issue · 2 comments

Hi there,

I'm trying to figure if there is a prop I'm missing out.
I'm trying to execute a function when pressing a button that is located on the drawer.

<Drawer
        type={'overlay'}
        ref={'_drawer'}
        content={
          <SideBar
            sideBarToggle={this.toggle}
          />
        }
        open={this.state.sideBarToggle}
        closedDrawerOffset={0}
        negotiatePan={true}
        panOpenMask={0.25}
        panThreshold={0.25}
      >

I need to press very carefully not to invoke drawer movement and to invoke button function.

Is there anything to do?

Happen to me as well, any solution for this?

For me, add panCloseMask={0.5} solve this.