@moustafahelmi/react-native-dropdown

1.0.18 • Public • Published

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.

Package Sidebar

Install

npm i @moustafahelmi/react-native-dropdown

Weekly Downloads

1

Version

1.0.18

License

ISC

Unpacked Size

9.41 kB

Total Files

6

Last publish

Collaborators

  • moustafahelmi