1.0.18 • Published 6 years ago

@moustafahelmi/react-native-dropdown v1.0.18

Weekly downloads
11
License
ISC
Repository
github
Last release
6 years ago

react-native-dropdown is a javascript library that works on both android and ios

Installation

npm install @moustafahelmi/react-native-dropdown

Import

import Dropdown from '@moustafahelmi/react-native-dropdown'

Usage

<Dropdown
  buttonTitle={'done'}
  dataArray={dummyData}
  onSelect={selected => {
    console.log('selected', selected) // {key: "hey2", value:"value 1"}
  }}
  dropDownImage={require('../../assets/images/arrow.png')}
  imageSize={screenWidth * 0.05}
  fieldWidth={screenWidth * 0.9}
  fieldHeight={screenHeight * 0.06}
  placeholder={'dropdown'}
  placeholderColor={'grey'}
  textColor={'black'}
  value={'value2'}
  modalWidth={screenWidth}
/>

Demo

react-native-dropdown demo

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago