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.

[Bug]: RNGestureHandlerModule.attachGestureHandler got 2 arguments, expected 3

See original GitHub issue

Description

After upgrading to v^2 from v1, release apk crashes with error

com.facebook.react.bridge.NativeArgumentsParseException: RNGestureHandlerModule.attachGestureHandler got 2 arguments, expected 3
    at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:30)
    at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:13)
    at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)
    at android.os.Looper.loop(Looper.java:214)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)
    at java.lang.Thread.run(Thread.java:919)

Screenshots

Steps To Reproduce

  1. Upgrade rngh from v^1 to v2.1.0

Package versions

  • React: 17.0.2
  • React Native: 66.4
  • React Native Gesture Handler: 2.1.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:23
  • Comments:31 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bryce0516commented, Apr 22, 2022

I solved this problem. I try ‘expo install react-native-gesture-handler react-native-reanimated’ , and wrapped root view with GestureHandlerRootView

2reactions
Douglas-Hsiehcommented, Dec 26, 2021

Same issue here when upgrading react-native-gesture-handler and expo with $ expo upgrade

react-native-gesture-handler 2.1.0 expo 44.0.0 react native 0.64.3 react 17.0.1

Also wrapped my app in a <GestureHandlerRootView> component per gesture-handler installation instructions

Read more comments on GitHub >

github_iconTop Results From Across the Web

RNGestureHandlerModule.attach Gesture Handler got 3 ...
and my problem is when I run the app and login in Home screen, I get this error: RNGestureHandlerModule.attach Gesture Handler got 3...
Read more >
I have an issue with RNGestureHandlerModule ... - GitHub
I have an issue with RNGestureHandlerModule.attachGestureHandler was call 2 arguments but expects 3 arguments #1935.
Read more >
GestureHandler - Expo Documentation
This library provides an API that exposes mobile platform specific native capabilities of touch & gesture handling and recognition.
Read more >
has anyone managed to make @rainbow-me/animated-charts ...
After installing it, i got another error regarding SVG. ... "rngesturehandlermodule.attach gesture handler got 2 arguments expected 3".
Read more >
react-native-gesture-handler - Bountysource
Hi ! I have a little issue on Android, onGestureEvent is not trigger when GestureHandler components is on a modal on Android. When...
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