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.

Handler for tag 1 does not exist

See original GitHub issue

Hi,

I got this error using PanGestureHandler.

My code looks like:

<PanGestureHandler enabled maxPointers={1} onGestureEvent={this.handleEvent}>
     <Animated.View { ...someStuff }>
     </Animated.View>
</PanGestureHandler>

Am I missing something ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
saranchonkaucommented, May 21, 2018

@osdnk I have the same issue (on Android). I have investigated this problem and found, that createGestureHandler method have invoked after attachGestureHandler method. Other words, library try to attach gesture handler that doesn’t exist yet. It is happening because of “setImmediate” method in componentDidMount. So when app started, componentDidMount was invoked, and then componentDidUpdate was invoked immediately (because of redux action in componentDidMount). When i insert console.log into GestureHandler.js file, i see the following sequence of methods invocation:

  1. componentDidMount
  2. componentDidUpdate and attaching of gesture handler (that doesn’t exist yet) to view
  3. setImmediate inside componentDidMount, creation of gesture handler

When i remove redux actions from componentDidMount, i haven’t error

0reactions
foyarashcommented, May 23, 2018

@kmagiera can confirm it works, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handler for tag 1 does not exist · Issue #182 - GitHub
Hi, I got this error using PanGestureHandler. My code looks like: Am I missing something ?
Read more >
React Native: Animated node with tag 1 does not exists
Im not event using the Animated Tag in any of my code so why do I get this error. This is my package.json...
Read more >
EC2 instance launch failures - Amazon EC2 Auto Scaling
This page provides information about your EC2 instances that fail to launch, potential causes, and the steps you can take to resolve the...
Read more >
Unknown Prop Warning - React
The unknown-prop warning will fire if you attempt to render a DOM element with a prop that is not recognized by React as...
Read more >
Getting Started | React Native Gesture Handler
The Expo SDK incorporates the latest version of react-native-gesture-handler available at the time of each SDK release, so managed Expo apps might not...
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