Mobilecn-UI / nativecn-ui

Beautiful and customizable React Native components
https://nativecn.mintlify.app
MIT License
987 stars 51 forks source link

New component: Menu #10

Open okalil opened 9 months ago

okalil commented 9 months ago

Hello, guys. I'm happy that shadcn idea has reached React Native community, and I would like to suggest a few more components that are very commonly used in native mobile apps.

Contribution: new Menu component

The Menu component is a very common component that allow users to discover new actions. It's generally composed by a button or icon button that opens a dropdown menu when pressed.

Implementation details:

One option to be discussed would be using Zeego, which uses native elements for composing the menu in each platform. To make it simple, we can also just use existing react-native components, like Pressable , View and Text.

For reference, NativeBase library includes a component like that: https://docs.nativebase.io/menu