Skip to content

Instantly share code, notes, and snippets.

@aleclarson
Created March 29, 2019 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aleclarson/219105fc77658e1da620a17b2e05b1de to your computer and use it in GitHub Desktop.
Save aleclarson/219105fc77658e1da620a17b2e05b1de to your computer and use it in GitHub Desktop.
<Menu />

<Menu /> is a concept React component for controlling the native NSMenu in react-native-macos.

import {Menu} from 'react-native-macos'

<Menu hidden={true}>
  <Menu.Group name="File">
    <Menu.Item name="New..." enabled={false} action={() => {}} />
    <Menu.Separator />
    <Menu.Group name="Share">
      {...shareItems}
    </Menu.Group>
  </Menu.Group>
</Menu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment