-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
MainTabsScreen: Add Users icon to bottom nav #5506
base: main
Are you sure you want to change the base?
Conversation
WIP Not ready for review yet, feedback or suggestions are welcome anytime :D |
31b821e
to
2db36ec
Compare
2db36ec
to
83313ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @manila! Code comments below.
In the UI, let's also have an app bar / nav bar at the top, with the title "Users". See SubscriptionsScreen
for how we do that on the screen you get from the existing "#" tab.
export default function UsersInfoScreen(props: Props): Node { | ||
return ( | ||
<SafeAreaView mode="padding" edges={['top']} style={{ flex: 1 }} scrollEnabled={false}> | ||
<UsersProfileCard filter="" /> | ||
</SafeAreaView> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of having a trivial wrapper component like this, let's have just one component that does the job of both this and the inner component.
(I see the existing UsersScreen
looks this way too. Maybe I'll go and fix that now.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I see the existing
UsersScreen
looks this way too. Maybe I'll go and fix that now.)
import UsersProfileCard from './UsersProfileCard'; | ||
|
||
type Props = $ReadOnly<{| | ||
navigation: AppNavigationProp<'users'>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should follow the model of the other screen components that have the same navigation-related context -- which means the ones that also appear in MainTabsScreen
in the same way that you're adding this one there. Take a look at the navigation
props on those.
navigation: AppNavigationProp<'users'>, | ||
|}>; | ||
|
||
export default function UsersInfoScreen(props: Props): Node { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: function name of default export should match filename
Fixes: #5495
This the start of a proposed fix for issue #5495
TODO: