How to use the react-native-popover-menu.Show function in react-native-popover-menu

To help you get started, we’ve selected a few react-native-popover-menu examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github prscX / react-native-popover-menu / Example / App.js View on Github external
menus: [
            {
              label: "Share me please"
            }
          ]
        }
      ]

    let menus
    if (Platform.OS === 'android') {
      menus = menusAndroid;
    } else if (Platform.OS === 'ios') {
      menus = meunsIOS;
    }

    RNPopover.Show(ref, { menus: menus, onDone: selection => {
        console.log("selected item index: " + selection);
      }, onCancel: () => {
        console.log("popover canceled");
      }, tintColor: "#888888", textColor: "#FFFFFF" });
  }

react-native-popover-menu

React Native: Native Popover Menu

Apache-2.0
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Popular react-native-popover-menu functions