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

[FIX]: Increase number of pixel difference needed to qualify as non-gesture mode navigation #5460

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

walmat
Copy link
Contributor

@walmat walmat commented Mar 4, 2024

Fixes APP-####

What changed (plus any additional context for devs)

Screen recordings / screenshots

What to test

@walmat walmat added the android android public beta label Mar 4, 2024
Copy link
Contributor

@skylarbarrera skylarbarrera left a comment

Choose a reason for hiding this comment

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

sure thing

@@ -34,5 +34,5 @@ export const isUsingButtonNavigation = () => {
const deviceHeight = Dimensions.get('screen').height;
const windowHeight = Dimensions.get('window').height;
const bottomNavBarHeight = deviceHeight - windowHeight;
return bottomNavBarHeight > 70;
return bottomNavBarHeight > 95;
Copy link
Contributor

Choose a reason for hiding this comment

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

any good way to not have this hardcoded? not sure exactly how this is being used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not that I'm aware. There's probably a better way to check what navigation mode an Android user is using though..

Copy link
Contributor

Choose a reason for hiding this comment

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

is this helper basically guessing whether the android has a soft nav bar or not? wondering if we can just get the nav bar height and return whether it's nonzero

@walmat walmat requested a review from jinchung as a code owner March 5, 2024 17:36
@walmat walmat merged commit 3fcfd16 into develop Mar 5, 2024
6 checks passed
@walmat walmat deleted the @matthew/patch-android-bottom-bar branch March 5, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android android public beta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants