Pressable interaction issue with StackNavigator on iPhone Xs + new architecture #43546
Labels
Resolution: Answered
When the issue is resolved with a simple answer
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
On iPhone Xs/Xs Max + the new architecture enabled, Pressable does not correctly respond to
onPress
when wrapped inside a StackNavigator. Seems to be an issue related to thePressable
rectangle not accounting for the space that the header takes up. If the component is not inside a StackNavigator screen, it will behave correctly.Observed that touching the "pressable" area emits a
LEAVE_RECT_AREA
signal, but when I move my press to the top of the screen it will emit aENTER_RECT_AREA
signal and only fire the onPress if released there. Seems to think the pressable area is at the top of the screen possibly caused by the stack header (See video).Steps to reproduce
cd ReproducerApp
yarn
yarn install:pods
yarn ios
React Native Version
0.73.6
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Reproducer
https://github.com/react-native-community/reproducer-react-native
Screenshots and Videos
Screen.Recording.2024-03-18.at.5.18.36.PM.mp4
The text was updated successfully, but these errors were encountered: