CP-12596 - Core mobile crashes when trying to stake #3391
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Ticket: CP-12696
headerTitleandheaderBackgroundinsideuseFadingHeaderNavigationas well as cleanup onuseFocusEffect. Google play console crashes reports that the header rerendering or out of view is causing this crash.Gemini crash report from Google Play Console
The crash indicates an IllegalStateException occurring because a View is being added to a parent ViewGroup when it already has an existing parent. This typically means a view object, specifically one managed by com.swmansion.rnscreens.ScreenStackHeaderConfig for the screen's header, was attempted to be attached to the view hierarchy without first being properly removed from its previous parent. This issue is observed during an onUpdate or onAttachedToWindow lifecycle event within the rnscreens library, suggesting a problem with how header views are being managed or re-rendered in the React Native application's native component layer.Testing
Dev Testing (if applicable)
iOS - 6706
Android - 6707
Current behavior after test is finished
page stalls for 2-3 minutes and then crashes.
Expected behavior
Staking finishes as expected and it takes less that 2-3 minutes to finish the last step
Checklist
Please check all that apply (if applicable)