Skip to content

Conversation

@bogdandobritoiu
Copy link
Contributor

@bogdandobritoiu bogdandobritoiu commented Dec 3, 2025

Description

Ticket: CP-12696

  • Memoized headerTitle and headerBackground inside useFadingHeaderNavigation as well as cleanup on useFocusEffect. Google play console crashes reports that the header rerendering or out of view is causing this crash.
  • Added freezeOnBlur to modals and secondaryModals

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.

  1. activate fuji (reported on mainnet, can repro on fuji)
  2. navigate to the stake flow in core mobile
  3. start a stake and enter an amount
  4. set a CUSTOM DATE (do not pick one of the auto populated ones, open the custom option and select from a calendar)
  5. continue to advanced set up
  6. specify filter amounts and continue
  7. select a node to stake to
  8. review details and confirm

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)

  • I have performed a self-review of my code
  • I have verified the code works
  • I have included screenshots / videos of android and ios
  • I have added testing steps
  • I have added/updated necessary unit tests
  • I have updated the documentation

@bogdandobritoiu bogdandobritoiu marked this pull request as ready for review December 3, 2025 13:23
@bogdandobritoiu bogdandobritoiu changed the title CP-12596 - [stake] Core mobile crashes when trying to stake CP-12596 - Core mobile crashes when trying to stake Dec 3, 2025
B0Y3R-AVA
B0Y3R-AVA previously approved these changes Dec 3, 2025
@bogdandobritoiu
Copy link
Contributor Author

dev build
iOS - 6725
Android - 6726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants