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.

Not able to click on child component

See original GitHub issue

As title, I’m not able to click on any TouchableHighLight which is the child of Drawer. I have configured as the following snippet <Drawer ref={c => this.drawer = c} type={'displace'} openDrawerOffset={100} closedDrawerOffset={0} panOpenMask={.1} panCloseMask={.9} relativeDrag={false} content={navLayout} styles={drawerStyles} tapToClose={false} negotiatePan={true} side={'left'}> CHILD COMPONENT </Drawer>

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jqncommented, Dec 16, 2016

What worked for me was to set PanCloseMask to a lower value panCloseMask: .2

1reaction
kasperitecommented, Sep 12, 2016

I came across the exact issue and what I did was adjusting panCloseMask so that the child component onPress event get triggered, not very ideal but it works for now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clicking a child component affects parent in an unexpected way
When the item is shown, and when it's clicked, this runs: ... If it's not connected, the element is no longer in the...
Read more >
37. Triggering child component Button click Event and catch it ...
Your browser can't play this video. ... Triggering child component Button click Event and catch it in parent component - Angular Testing.
Read more >
How to show/hide via btn click from parent component?
In handleshowHide function we are checking if label is show then setting it hide else setting it show. Then calling the child function...
Read more >
How to call the child component function from the parent ...
In this article, we will see how to the call child component function ... when the button is clicked, there is no direct...
Read more >
Pass data to child component with`@click` - Laracasts
That passes the "clicked" data but I can't assign it to any properties. item is an object. Copy Code props: ['item'], data() ...
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