Fixes: Shared Element Transition (Solution provided) #6698
Add safety checks in handleTabNavigatorChange to prevent crash
This fixes a crash that occurs when _disappearingScreens array is empty or
contains invalid objects by adding appropriate null checks and bounds checking.
The crash would occur when:
The _disappearingScreens array is empty
navTabScreen or its reactSuperview is null
targetScreen is null
App was crashing during shared element transition because of invalid array access.
Fixes: Shared Element Transition (Solution provided) #6698
Add safety checks in handleTabNavigatorChange to prevent crash
This fixes a crash that occurs when _disappearingScreens array is empty or contains invalid objects by adding appropriate null checks and bounds checking.
The crash would occur when:
App was crashing during shared element transition because of invalid array access.
Fixes #6698