showing results for - "dropdown menu in react native"
Paloma
07 Feb 2016
1// How to install
2npm install --save react-native-material-dropdown
3
4// How to use
5import React, { Component } from 'react';
6import { Dropdown } from 'react-native-material-dropdown';
7
8class Example extends Component {
9  render() {
10    let data = [
11      {      value'Banana',    },
12      {      value'Mango',    },
13      {      value'Pear',    }];
14    
15    return (      
16      <Dropdown        
17      label='Favorite Fruit'        
18      data={data}      
19  		/>    
20		);  
21	}
22}
Nicolás
18 Jan 2018
1/**
2 * Sample React Native App
3 * https://github.com/facebook/react-native
4 * @flow
5 */
6
7import React, { Component } from "react";
8import { Platform, StyleSheet, Text, View, Alert, YellowBox} from "react-native";
9import { Menu, MenuProvider, MenuOptions, MenuOption, MenuTrigger} from "react-native-popup-menu";
10
11export default class HomeActivity extends Component {
12
13  constructor(props) {
14     super(props);
15     YellowBox.ignoreWarnings([
16      'Warning: isMounted(...) is deprecated', 'Module RCTImageLoader'
17    ]);
18   }
19
20  render() {
21    return (
22      <MenuProvider style={{ flexDirection: "column", padding: 30 }}>
23        <Menu onSelect={value => alert(`You Clicked : ${value}`)}>
24
25          <MenuTrigger  >
26          <Text style={styles.headerText}>DropDown Menu</Text>
27          </MenuTrigger  >
28
29          <MenuOptions>
30            <MenuOption value={"Login"}>
31              <Text style={styles.menuContent}>Login</Text>
32            </MenuOption>
33            <MenuOption value={"Register"}>
34              <Text style={styles.menuContent}>Register</Text>
35            </MenuOption>
36            <MenuOption value={"Download"}>
37              <Text style={styles.menuContent}>Download</Text>
38            </MenuOption>
39            <MenuOption value={"Logout"}>
40              <Text style={styles.menuContent}>Logout</Text>
41            </MenuOption>
42            <MenuOption value={3} disabled={true}>
43              <Text style={styles.menuContent}>Disabled Menu</Text>
44            </MenuOption>
45          </MenuOptions>
46
47        </Menu>
48      </MenuProvider>
49    );
50  }
51}
52
53const styles = StyleSheet.create({
54    headerText: {
55    fontSize: 20,
56    margin: 10,
57    fontWeight: "bold"
58  },
59  menuContent: {
60    color: "#000",
61    fontWeight: "bold",
62    padding: 2,
63    fontSize: 20
64  }
65});
queries leading to this page
drop down list in react nativedropdown popup react nativedrop down menu react nativereact native listview with dropdowndropdownpicker in react nativedrop down list react nativenative dropdown menureact native element dropdown examplecreate dropdown in form react nativedropdown tree react nativedropdown reactnativeshould i use a native dropdown react native paper dropdown react componenthow to use native dropdown in reactjsdrop down list react nativereat native drop downdropdown description react nativereact native elements selectdropdowndropdown in react native material dropdowndropdown manu react nativedropdownpicker react nativetype dropdown in react nativedropdown nativedropdown button in react nativereact native dropdown menureacat native dropdown optiondropdown in react nativedropdown menu component react nativereact native dropdown picker react nativereact native dropdown optionsdropdownref react nativereact native select dropdown examplesreact native drop down sample codedropdown react native androiddropdown react native examplereact native how to make a dropdown listreactnative dropdownreact native selected dropdown dropdown for react nativedropdown in reactnativedrop down button in react nativedropdown react naivereact native dropdown pickerdropdown to read react nativedropdownalert react nativedrop down tool for react nativehow to create dropdown in react nativereact native dropdowncreate dropdown in react nativereact native dropdown menu inputsimple dropdown in react nativereact native elements dropdown select react native dropdown menureact native dropdownreact nativr dropdownhow to create a dropdown in react nativereact native dropdown componentdropdown selector react nativereact native select dropdownreact native dropdown container dropdown react native elementshow to show dropdown in react nativereact dropdownreactnative doc dropdown using class componentreact native add image with dropdownreact native component for options dropdownandroid native dropdownreact native drop downreact native combo boxreact native options dropdowndown drop react nativereact native dropdown optiondrop down box react netivedropdown input in react nativereact native meterial dropdownreact native dropdown v2react native dropdown iosdropdownmenu list in react nativecreate dropdown react nativereact native dropdown picke dropdownreact native dropdown informationreact native dropdopdownreact native dropdown menyandroid react native dropdown react native dropdown pickerreact native dropdown popupreact native dropdown navigationhow to add drop down menu in react nativereact native select dropdown examplereact native dropdownalert npmdropdown list react nativecustom dropdown in react nativedropdown container react nativedropdownlist react nativehow to use dropdown in react nativedropdown navigation bar react nativedropdonw menu react nativehow to create drop down menu in react nativehow to make dropdown react native modeldropdown listview react nativereact native iosdropdowndrop down input with react nativereact native dropdown with inputdropdown category in react nativedropdown web react nativereact native fropdowndrapdown react nativecustom drop down menu in react nativereact native drop down itemreact native dropdown menu customdrop down menu in react nativeflatlist onclick react nativereact native dropdown picker dropdown not open menureact native dropdown itemreactr native dropdownreact native community dropdownreact native web dropdownhow to create drop down list in react nativedropdown simple drop down item component for react nativedropdown list for react nativematerial dropdown in react nativereact native dropdown buttonreact native paper dropdown get valuereact native dropdowsreact animated dropdowndropdown animation react nativedropdown menu react nativeupdate the dropdown react nativereact native drop down menunreact native dropdown with data react native paper dropdownreact native elements dropdown exampledropdown in react native class componentdropdown react native material dropdownhow to add drop down box in react nativedropdownpicker for react nativedropdown menu code in react nativedropdown field in react nativedropdown picker react native exampleselect dropdown react nativedropdown item react nativereactnative dropdown documentationdropdown items from list react nativedropdown page react nativedropdown box in react nativehow to make dropdown list in reatc nativemake dropdown in react native react native dropdown with serarchreact native dropdown for citydropdown component react nativedropdown react nativedropdown in react native exampleneed to implement react native dropdownreact native input dropdownreact native element dropdown examplereact native drop down infohtml native dropdowndropdown in react native elementsdropdown list in react nativereact native dropdowns with searchreact native dropdoendropdown react native elementreact native drop down searchreact native add item with dropdownclick to dropdown in react nativereact native drop down menureact native selecthow to make dropdown in react nativereact use native dropdownreact native dropdown menu examplecreate a dropdown in react nativeload dropdown react nativedropdown menu in react nativeselected dropdown react nativedropdown layout react nativereact native dropdownalerta native dropdownreact native flatlist dropdowndropdown in native scripttreact native dropdowninput dropdown react native examplereact native drop down listinstall react native dropdown pickerhow to create drop down in react nativedrop down in react nativedropdown picker react nativereact native dropdown menu selectinput dropdown react nativehow to implement dropdown in react nativereact native dropdownsselect dropdown in react nativehow to use drop down in react nativedrop down in raect nativereact native dropdown librarydropdown reaact nativereact native model dropdownnative dropdownreact native dropdown listreact native ios dropdownreact native dropown componentmaterial dropdown react nativereact native multi level dropdowndropdown button menu in react native dropdown in react native paperreact native 3aselect dropdownhow to over dropdown view in react nativereact native dropdown sectionreact native dropdown materialdrop down listbox in react nativereact natiev dropdownreact native dropdown menusreact native dropdown pickreact native dropdown npmreact native dropdonwinout dropdown react native examplereact native dropdown meniumulti level dropdown in react nativereact native multi select dropdownreact native select dropdownreact native button with dropdownreact native create dropdownreat native dropdown menureact native elements drop downmenu dropdown react nativedrop down react nativereact native make dropdown menu in card component in the lis thow to make a dropdown in react nativedropdown ui in react nativeis it possible to use native dropdown in reactreact native dropdown selectreact navigation dropdown menu react nativedropdowns react nativereact native category dropdownmenuuse native select dropdownreact native elements dropdownhow to add drop down in react nativereact native dropdown calling codecreate drop down list in react nativedrop down for react nativehow to create drop down react nativedropdowns in react nativecombobox react nativereact native material dropdownreact native android dropdownreact native dropdown inputdropdown select in react nativereact native dropdown list exampledropdown button react nativereact native dropdownlistreact native elements dropdowndropdown inside dropdown in react nativeopen dropdown menu react nativedropdown website react nativereact native simple dropdowninput with dropdown react nativehow to make dropdown in reactnativeopen dropdown over other components in react native using react native dropdown pickerdropdown in react nativedrop down in element react nativereact native droptdownreact native dropdown npmmake native dropdowndropdown description react nativedreact native drop down listhow to create dropdown component in react nativedropdown menu in forms react nativereact native button drop downreact native dropdowndropdown react native dropdownboxdropdown input react nativereact native trxt box with drop downdropdown react nativereact native dropdownbuttonreact native dropdown pickerreact native dropdown menu tutorialhow to use drop down menu in react nativenative dropdown htmldropdown menus react nativereusable dropdown reactreact native dropdown selectorhow to implement dropdown in react native exampledrop down option react nativeneed dropdown menu with react nativereact native dropdown examplereact native select dorpdowndropdownlist in react nativereact nattive drop downreact native elements dropdown menuinpit dropdown react nativereact native input with dropdownnpm react native dropdown with searchdropdown in nativebasereact native dropdown itemreact native dropdown simpledropdown view react nativedropdown tab bar react nativereact dropdown select for react nativerecat native dropdowndropdown menu for react nativereact native dropdown faqdropdown in react native impleme tbest way to make a dropdown in react nativeopen a drop down in react nativereact native dropdown fieldbuild dropdown menu reactnativereact native category dropdown menudropdown ract nativedropdown component in react nativemake dropdown in react nativereact native react native element dropdown dropdown option in react nativedropdown raect nativedrop dwon menu react nativereact native menu dropdownreact native dropdown and displayreact native dropdowreact native comboboxhow to make drop down in react nativereact native dropdown listmake a drop down in react nativedropdown react native eledropdown select react nativedropup react nativehow to make drop down componentn in react nativereact native dropdown examplenative base dropdowndropdown menu react native expodropdown panel react nativedrop down number for react nativerect native dropdown buttondropdown box react nativereact native material dropdown react nativereact native native dropdownreact native dropdown animnationreact native drop down liostdropdown menu in react native