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.

[iOS][Expo] PanGestureHandler does not get active when it has a `simultaneousHandlers`

See original GitHub issue

Description

The new release of Expo 46 seemed had broken gesture-handler on iOS, where when a PanGestureHandler has simultaneousHandlers on, it will never get active.

I have tested the same code base on Android, and it function as expected. Also tested on a bare React Native project, and it function as expected.

This issue did break Bottom Sheet library.

Preview

Expo

expo 46.0.6, react-native 0.69.4, react-native-gesture-handler 2.5.0, react-native-reanimated 2.9.1

https://user-images.githubusercontent.com/4061838/184496206-8ac2e172-aa55-430b-89c0-b28b4212a063.mov

React Native

react-native 0.69.4, react-native-gesture-handler 2.5.0, react-native-reanimated 2.9.1

https://user-images.githubusercontent.com/4061838/184496221-e571956e-7aee-49a1-be34-55228ddb4bae.mov

Steps to reproduce

  1. Run the snack provided on iOS
  2. Scroll the list

State won’t get active

  1. Run the snack provided on Android
  2. Scroll the list

State will get active

Snack or a link to a repository

https://snack.expo.dev/@gorhom/7a1a40

Gesture Handler version

2.5.0

React Native version

0.69.4

Platforms

iOS

JavaScript runtime

JSC

Workflow

Expo managed workflow

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

Real device

Device model

iPhone

Acknowledgements

Yes

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
lukmccallcommented, Aug 16, 2022

If you’re using the expo-dev-client, you can already test out the fix. Just bump the version of dev-client to 1.2.1. The same fix will be available in Expo Go soon 😉

1reaction
MarceloPradocommented, Aug 17, 2022

We had the same issue at my company. Upgrading the dev-client to 1.2.1 solved the issue for us. If anyone’s curious, here’s the relevant commit: https://github.com/expo/expo/commit/0ce07b3d1cc2c59fd213982266a44d54c5715358

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cross handler interactions | React Native Gesture Handler
By default, only one gesture handler is allowed to be in the ACTIVE state. ... and PanGestureHandler that would have to simultaneously recognize...
Read more >
React Native pan gesture handler not working - Stack Overflow
I have been debugging it for days and cannot find what I'm doing wrong, it is exactly the same as mentioned in his...
Read more >
react-native-gesture-handler - npm
This may not be possible if you use one of the native navigation ... There is no additional config required to be done...
Read more >
The basics of PanGestureHandler with React Native ...
In this tutorial we'll learn the basics of the PanGestureHandler component (from react-native-gesture-handler package). We will also play ...
Read more >
ScrollView from scratch with PanGestureHandler in ... - YouTube
Of course we'll take advantage from some hooks provided by Reanimated 2. ... If you like this tutorial, don't forget to subscribe to...
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