Skip to content

Swipe to go back gesture on IOS web jitters #11309

@BajajGirik

Description

@BajajGirik

Current behavior

To reproduce this effect, you will need to run this snack on an IOS Simulator or an actual Iphone

Note: If you want to run this project locally, you will need to manually install "react-native-web": "~0.18.9", "react-dom": "18.1.0" packages

If we try to run this project on IOS safari (using an emulator or an actual Iphone) and try to use the swipe to go back gesture, we can see that the animation jitters most of the times. As soon as I lift the finger to let the screen slide, the screen continues to slide to the right, but near the end the screen moves a little left and it causes a jittery effect and doesn't look good.

Here's the video showing this effect as well:

Screen.Recording.2023-03-29.at.11.41.49.AM.mov

(Look at the end of the video where the effect is clearly visible)

Expected behavior

The animation should complete smoothly and there shouldn't be a flicker on the device when it completes.

Reproduction

https://snack.expo.dev/@bg2010/gesture-react-native

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-tab-view

Environment

package version
react 18.1.0
react-dom 18.1.0
react-native 0.70.5
react-native-web ~0.18.9
@react-navigation/native ~6.1.6
@react-navigation/stack ~6.3.16
react-native-safe-area-context 4.4.1
react-native-screens ~3.18.0
react-native-gesture-handler ~2.8.0
react-native-reanimated ~2.12.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions