@bluejeans/react-native-wpf-sysmenu

0.0.6 • Public • Published

react-native-wpf-sysmenu

An extension of the Windows system menu with custom items.

Designe notes

  • Control assumes that there is no any other components that can modify system menu.
  • Won't check for ID duplicates, just overwrite it.
  • By some reasons EventEmitter is included by relative path ../../react-native/Libraries/EventEmitter/RCTDeviceEventEmitter, in case if in app file will be in different location - the path should be changed appropriately
  • Id should be in range 1 - 61400

Example

Full example can be ssen at Example folder.

import Menu from '@bluejeans/react-native-wpf-sysmenu'

const menu = Menu.create();

menu.addSeparator()
 .then(() => menu.addItem(1, 'Test Item 1', () => Alert.alert('Clicked', 'Item 1')))
 .then(() => menu.addItem(2, 'Test Item 2', () => Alert.alert('Clicked', 'Item 2')))
 .then(() => menu.addItem(3, 'Test Item 3', () => Alert.alert('Clicked', 'Item 3')))
 .then(() => menu.enableItem(2, false))
 .catch((e) => Alert.alert('Error', e.message))

Readme

Keywords

none

Package Sidebar

Install

npm i @bluejeans/react-native-wpf-sysmenu

Weekly Downloads

0

Version

0.0.6

License

none

Last publish

Collaborators

  • d_e_n_o_m
  • sanmatishah
  • vpashystyi
  • andrii.borzylo
  • mjados
  • lseto
  • godpranay
  • bjliutyi
  • avostresbjeans
  • valeriin
  • ken.mckaba
  • ajeey
  • kumam7i
  • bluejeans-npm-svc
  • praveenbluejeans
  • nanda.doddapaneni
  • atheeq87
  • pre10der89
  • aldaviva
  • purushothama
  • vberko
  • aborzylo
  • mikunal
  • alibi4e
  • yashgogia