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

Supported Material Design 3 for the BottomAppBar (Android) #659

Merged
merged 5 commits into from
Feb 4, 2023

Conversation

grahammendick
Copy link
Owner

Updated Android material components to v1.7.0 to support Material Design 3 for the BottomAppBar. Set height to 80dp to match the Material 3 specs if the user opts in by using a Material3 Theme.

Material components v1.7.0 updated the compileSdkVersion and targetSdkVersion to 32. Currently, React Native 0.70 has these at 31 so not going to merge this PR yet. It looks like React Native 0.71 bumps these to 33 which would avoid having to add a manual bump step to the setup instructions.

Brings in material 3 for BottomAppBar
On new architecture a fab anchored to bottom app bar and aligned to the end overlapped the buttons (didn't overlap on material 3 but think that's because end is the default alignment). I'm guessing this is because the order of events have changed but not sure. Requesting another layout when attached to window fixed it
When double tap tab then scroll to top. So need to show the bottom app bar that might be hidden when hideOnScroll
Same change as before but for non-primary tabs
@grahammendick grahammendick changed the title Supported Material Design 3 for the BottomAppBar component (Android) Supported Material Design 3 for the BottomAppBar (Android) Dec 20, 2022
@grahammendick
Copy link
Owner Author

React Native has bumped compileSdkVersion and targetSdkVersion to 33 so good to merge

@grahammendick grahammendick merged commit 4e5d1fc into master Feb 4, 2023
@grahammendick grahammendick deleted the bab-material3 branch February 4, 2023 23:15
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.

1 participant