Skip to content

Conversation

@lealobanov
Copy link
Collaborator

Related Issue

Closes #???

Summary of Changes

Need Regression Testing

  • Yes
  • No

Risk Assessment

  • Low
  • Medium
  • High

Additional Notes

Screenshots (if applicable)

@github-actions
Copy link

github-actions bot commented Oct 27, 2025

Analyzing changes in this PR...

This might take a few minutes, please wait

📥 Commits

Analyzing changes from base (d696e7b) to latest commit (d7ed118):

📁 Files being considered (3)

🔄 app/src/main/java/com/flowfoundation/wallet/page/token/detail/presenter/TokenDetailPresenter.kt (1 hunk)
🔄 app/src/main/java/com/flowfoundation/wallet/page/wallet/presenter/WalletHeaderPresenter.kt (2 hunks)
🔄 app/src/main/java/com/flowfoundation/wallet/reactnative/ReactNativeActivity.kt (3 hunks)


autogenerated by presubmit.ai

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

LGTM!

Review Summary

Commits Considered (1)
  • af49813: feat: receive page RN bridge and entry point
Files Processed (3)
  • app/src/main/java/com/flowfoundation/wallet/page/token/detail/presenter/TokenDetailPresenter.kt (1 hunk)
  • app/src/main/java/com/flowfoundation/wallet/reactnative/ReactNativeActivity.kt (1 hunk)
  • app/src/main/java/com/flowfoundation/wallet/reactnative/bridge/NativeFRWBridge.kt (1 hunk)
Actionable Comments (0)
Skipped Comments (3)
  • app/src/main/java/com/flowfoundation/wallet/reactnative/bridge/NativeFRWBridge.kt [196-201]

    enhancement: "QR code dimensions are hardcoded"

  • app/src/main/java/com/flowfoundation/wallet/reactnative/bridge/NativeFRWBridge.kt [245-247]

    best practice: "Missing cache cleanup mechanism"

  • app/src/main/java/com/flowfoundation/wallet/reactnative/bridge/NativeFRWBridge.kt [206-206]

    enhancement: "Suboptimal bitmap configuration for QR code"

@lealobanov lealobanov marked this pull request as ready for review October 29, 2025 00:15
@lealobanov lealobanov requested a review from a team as a code owner October 29, 2025 00:15
jaymengxy
jaymengxy previously approved these changes Oct 31, 2025
val network = chainNetWorkString()

// Reuse existing launch method with "Receive" as the initialRoute
launch(context, null, address, network, "Receive")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can just add Receive into RNBridge.ScreenType, instead of use hard code string in here.

And then we don't need create a new launchReceive method.

We can simply reuse fun launch(context: Context, screenType: RNBridge.ScreenType?)

val routeName = getRouteName(it, null)

// Use explicit initialRoute if provided, otherwise determine from screenType
val routeName = initialRoute ?: screenType?.let {
Copy link
Contributor

Choose a reason for hiding this comment

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

each ScreenType should have screenName value as initialRoute.

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.

4 participants