react-native-screens'
onTabSelected
event includes
isRepeated
on iOS and Android, but expo-router's
useOnTabSelectedHandler
does not include it.
To detect a re-tap today, you have to check
isFocused()
inside a
tabPress
listener. That only works because
tabPress
is emitted before
navigateSync
, and that order isn't documented. If it changed, every tap would look like a re-tap.
Proposal: add
data: { isRepeated: boolean }
to
tabPress
for native actions. Would you accept a PR for this? I'm happy to open one.
(expo-router 58.0.32, react-native-screens 4.30.1)