Skip to content

Conversation

@hurali97
Copy link
Member

@hurali97 hurali97 commented Jul 4, 2025

Summary

This PR migrates the existing implementation from ReactDelegate to ReactDelegateWrapper. The latter is a custom class that is created and it extends ReactDelegate. We follow this approach for two reasons:

  • The calling Activity in the native App does not need to implement DefaultHardwareBackBtnListener (a react-native internal interface)
    • A native App should not need to directly interface with RN core.
  • With this approach, we can pop the JS RN screens on hardware back button press

Test plan

Screen.Recording.2025-07-04.at.4.01.43.PM.mov

Copy link
Collaborator

@andrei-zgirvaci andrei-zgirvaci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Everything looks good, just have a few questions.

Copy link
Collaborator

@andrei-zgirvaci andrei-zgirvaci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hurali97 hurali97 merged commit 0067365 into main Jul 18, 2025
3 checks passed
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