nativecn-ui icon indicating copy to clipboard operation
nativecn-ui copied to clipboard

New component: Menu

Open okalil opened this issue 1 year ago • 0 comments
trafficstars

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

okalil avatar Feb 02 '24 12:02 okalil