Current behavior
When using Android devices (iOS and Android emulator is fine) you cannot use onPress in the header bar. onPressIn and onPress out does work. This was tested mostly with Samsung devices.
This only happens with native-stack / Expo Router.
Please have a look here: expo/expo#30032
Further information also in the linked issue in the facebook/react-native repo.
Expected behavior
onPress should work also on physical Android devices.
Reproduction
https://github.com/DrZoidberg09/RN-Android-Touch-Issue/
Platform
Packages
Environment
- [] I've removed the packages that I don't use
| package |
version |
| @react-navigation/native |
|
| @react-navigation/bottom-tabs |
|
| @react-navigation/drawer |
|
| @react-navigation/material-top-tabs |
|
| @react-navigation/stack |
|
| @react-navigation/native-stack |
|
| react-native-safe-area-context |
|
| react-native-screens |
|
| react-native-gesture-handler |
|
| react-native-reanimated |
|
| react-native-tab-view |
|
| react-native-pager-view |
|
| react-native |
|
| expo |
|
| node |
|
| npm or yarn |
|
Current behavior
When using Android devices (iOS and Android emulator is fine) you cannot use onPress in the header bar. onPressIn and onPress out does work. This was tested mostly with Samsung devices.
This only happens with native-stack / Expo Router.
Please have a look here: expo/expo#30032
Further information also in the linked issue in the facebook/react-native repo.
Expected behavior
onPress should work also on physical Android devices.
Reproduction
https://github.com/DrZoidberg09/RN-Android-Touch-Issue/
Platform
Packages
Environment