software-mansion-labs / react-native-turbo-demo

React Native Turbo - an open source library that can bring your turbo-enabled web application into the React Native world.
MIT License
101 stars 11 forks source link

VisitableView: change component rendering order #168

Closed pklatka closed 6 months ago

pklatka commented 6 months ago

Summary

This PR modifies the component ordering within VisitableView.tsx to ensure that the Error and Loading components are displayed in front of RNVisitableView. This change addresses an issue observed during navigation away from a screen that has encountered an error. Previously, the error view was momentarily hidden during the back navigation transition (this was especially visible on Android). With this adjustment, the error view maintains its visibility throughout the entire transition.

Test plan

Made sure that Error component is being shown when navigating back.