Skip to content

Path onPress prop not triggered since upgrading to expo 54 #2796

@EveJulliard

Description

@EveJulliard

Description

Since we update our app to expo 54, the path of my Svg are not pressable anymore.
On real android device, the onPress function is never called but surprisingly it is on android emulator. I reckon it is because user presses are not handled the same wether it is on a real device or on an emulator.

Steps to reproduce

  1. Add an SVG with paths on your app
  2. Add an onPress callback on the paths
  3. Presses on on path

Expected result : the onPress callback is triggered
Result : nothing append

Snack or a link to a repository

https://snack.expo.dev/@healico/react-native-svg-path-not-pressable

SVG version

15.13.0

React Native version

0.81

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo Dev Client

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

Real device

Device model

Huawei P30 Lite / Google Pixel 9A

Acknowledgements

Yes

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