-
-
Notifications
You must be signed in to change notification settings - Fork 276
Open
Description
Summary
I propose adding a new component to this repository: BottomNavBar. This component would represent a bottom navigation bar, a common UI pattern in mobile applications, allowing users to navigate between various sections such as "Home," "History," "Explore," and "Settings."
Why the BottomNavBar Component?
- Essential for Mobile Apps: Bottom navigation bars are an essential and widely-used pattern in mobile applications, making navigation between primary app screens intuitive and consistent.
- Alignment with the Project Scope:
- This component can be implemented using the
TabsPrimitivefrom@rn-primitives. - It fits the updated scope of this project by being built on primitives and avoiding external third-party library dependencies.
- This component can be implemented using the
- Accessible by Design: Utilizing
TabsPrimitiveensures accessibility, as it already aligns with React Native's accessibility features. - Style-Agnostic: The
BottomNavBarwill focus on functionality while allowing users to customize styles and icons based on their requirements.
Features of BottomNavBar
The proposed BottomNavBar will include the following:
- Customizable Tabs: Support for dynamic creation of tabs with icons, labels, and callbacks for select/deselect behaviors.
- State Management: Utilize
TabsPrimitive.Rootfor managing active state. - Lightweight and Flexible: Focus on simplicity and keeping the component style-agnostic.
- Usage of RN Primitives:
TabsPrimitive.Triggerfor tab buttons.TabsPrimitive.Contentfor individual tab content.
Next Steps
If the idea aligns with the maintainers' vision for this project, I would be excited to:
- Implement the
BottomNavBarcomponent by adhering to CONTRIBUTING.md guidelines. - Document the usage of the component, including best practices.
- Write tests to ensure stability.
Looking forward to feedback, and I’m happy to iterate on the idea.
Metadata
Metadata
Assignees
Labels
No labels
