react native dropdowns code example
Example: react native dropdown
// How to install
npm install --save react-native-material-dropdown
// How to use
import React, { Component } from 'react';
import { Dropdown } from 'react-native-material-dropdown';
class Example extends Component {
render() {
let data = [
{ value: 'Banana', },
{ value: 'Mango', },
{ value: 'Pear', }];
return (
<Dropdown
label='Favorite Fruit'
data={data}
/>
);
}
}