1.0.18 • Published 5 years ago

@moustafahelmi/react-native-dropdown v1.0.18

Weekly downloads
11
License
ISC
Repository
github
Last release
5 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

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago