Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated screen navigation with jetpack navigation library implementation #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sushant-Hande
Copy link
Contributor

@Sushant-Hande Sushant-Hande commented Dec 30, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Related Issues & Documents

Fixes #55

Description

Hi @SEAbdulbasit,
Earlier, when the user use to comes back from DetailScreen to MainScreenView, it was recomposing MainScreenView every time. This was resulting into inconsistent UI state and user experience. Now, after updating the navigation logic with Jetpack navigation code, that was commented earlier, it is working fine and the UI contents appearing as expected.

Code Changes

In MainView.kt file, manual navigation logic updated with Jetpack navigation code.

Screenshots, Recordings

Before change

Android iOS
manual-navigation-android.webm
manual-navigation-iOS.mp4

After change

Android iOS
jetpack-navigation-android.webm
jetpack-navigation-iOS.mp4

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.

MainScreenView is recomposing every time when user comes back from DetailScreen
1 participant