1.0.7 • Published 3 years ago

react-native-dropdownmenus-kun v1.0.7

Weekly downloads
8
License
-
Repository
-
Last release
3 years ago

react-native-dropdownmenus

Getting started

$ npm install react-native-dropdownmenus --save

Mostly automatic installation

$ react-native link react-native-dropdownmenus

Usage

import DropdownMenu from 'react-native-dropdownmenus';

let conditionData = [["one", "tow", "three"], ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
                        ["Java", "PHP", "C#", "JS", "C++", "Python"]];
<DropdownMenu
                style={{flex: 1}}
                bgColor={'white'}
                tintColor={'#666666'}
                activityTintColor={'green'}
                // arrowImg={}
                // checkImage={}
                // optionTextStyle={{color: '#333333'}}
                // titleStyle={{color: '#333333'}}
                maxHeight={300}
                handler={(selection, row) =>
                    console.log(selection,row)
                }
                data={conditionData}
                selectIndex={[0,2,0]}>
                
</DropdownMenu>

Param

ParameterTypeDefaultDescription
bgColorstringbackgroud color
tintColorstringnormal text color
activityTintColorstringactive text color
maxHeightnumbermax Height
hanlderfuncselected item onclickListener
dataArrayshow Data
selectIndexstringdefault selected index