Closed vikassharma96 closed 1 month ago
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/native
(found: 6.1.10
, latest: 6.1.17
)@react-navigation/bottom-tabs
(found: 6.5.19
, latest: 6.5.20
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
Couldn't find version numbers for the following packages in the issue:
@react-navigation/stack
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/native
(found: 6.1.10
, latest: 6.1.17
)@react-navigation/bottom-tabs
(found: 6.5.19
, latest: 6.5.20
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
Screens are only rendered after you navigate to it the first time. Your code for listener isn't called https://reactnavigation.org/docs/bottom-tab-navigator/#lazy
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro.
Current behavior
To prevent the default behavior by calling event.preventDefault() on
tabPress
event is no longer working for the first time even though it is mentioned in the official documentation @react-navigation/bottom-tabs@^6.5.19Expected behavior
It should prevent the default behavior for
tabPress
event after callingevent.preventDefault()
for the first and subsequent timesReproduction
https://snack.expo.dev/Hek2xjzn0zFcww-yg0C1L
Platform
Packages
Environment