How to use the react-native-popup-menu.Menu.debug function in react-native-popup-menu

To help you get started, we’ve selected a few react-native-popup-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 instea / react-native-popup-menu / examples / FlatListExample.js View on Github external
import React, { Component } from 'react';
import { FlatList, Alert, StyleSheet } from 'react-native';
import {
  MenuProvider,
  Menu,
  MenuTrigger,
  MenuOptions,
  MenuOption,
} from 'react-native-popup-menu';

Menu.debug = true;

const data = new Array(500)
  .fill(0)
  .map((a, i) => ({ key: i, value: 'item' + i }));

export default class App extends Component {
  render() {
    return (
      
        <menu> Alert.alert(value)}&gt;
          
          
             (
                </menu>

react-native-popup-menu

extensible popup/context menu for react native

ISC
Latest version published 2 years ago

Package Health Score

57 / 100
Full package analysis

Similar packages