|
1 | 1 | [npm-badge]: https://img.shields.io/npm/v/react-native-dropdown-autocomplete.svg?colorA=6b7c93&colorB=5ab1b8&style=flat-square
|
2 |
| -[](#contributors) |
3 | 2 | [npm-url]: https://www.npmjs.com/package/react-native-dropdown-autocomplete
|
4 | 3 | [npm-downloads]: https://img.shields.io/npm/dt/react-native-dropdown-autocomplete.svg?colorA=6b7c93&colorB=5ab1b8&style=flat-square
|
5 | 4 | # react-native-dropdown-autocomplete
|
6 | 5 |
|
7 | 6 | [![npm][npm-badge]][npm-url] [![npm][npm-downloads]][npm-url]
|
8 | 7 |
|
| 8 | +## Contributors ✨ |
| 9 | + |
| 10 | +Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): |
| 11 | + |
| 12 | +<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> |
| 13 | +<!-- prettier-ignore --> |
| 14 | +<table> |
| 15 | + <tr> |
| 16 | + <td align="center"><a href="https://paitoanderson.com/"><img src="https://avatars0.githubusercontent.com/u/4108718?v=4" width="100px;" alt="Paito Anderson"/><br /><sub><b>Paito Anderson</b></sub></a><br /><a href="https://github.com/maxkordiyak/react-native-dropdown-autocomplete/commits?author=PaitoAnderson" title="Code">💻</a></td> |
| 17 | + </tr> |
| 18 | +</table> |
| 19 | + |
| 20 | +<!-- ALL-CONTRIBUTORS-LIST:END --> |
| 21 | + |
9 | 22 | Based on https://bit.ly/2AFjUsj, the most significant advantage of this package among all others is that you can have multiple autocomplete's on your page after following instructions below. Works on Android and IOS.
|
10 | 23 | <p align="center">
|
11 | 24 | <img src="https://media.giphy.com/media/AS6Ts8m31qVFNpVHUZ/giphy.gif" alt="Autocomplete demo">
|
@@ -177,18 +190,3 @@ Change valueExtractor and pass the data to Autocomplete without fetchDataUrl
|
177 | 190 |
|
178 | 191 | While developing our react-native application I found out that there's no autocomplete library available which can satisfy a need for > 1 autocomplete on a page. Styles were overlapping and due to position: "absolute" we weren't able to actually trigger TouchableOpacity on an element from the list on android device. We used a library which provides dropdown with auto-adjusting position using measureInWindow on a ref, we tweaked it a bit and with autocomplete input and time-slicing implementation we managed to get what we need. Still we can't interact with TextInput component while dropdown is opened but this is the best result we got using React Native Modal.
|
179 | 192 |
|
180 |
| -## Contributors ✨ |
181 |
| - |
182 |
| -Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): |
183 |
| - |
184 |
| -<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> |
185 |
| -<!-- prettier-ignore --> |
186 |
| -<table> |
187 |
| - <tr> |
188 |
| - <td align="center"><a href="https://paitoanderson.com/"><img src="https://avatars0.githubusercontent.com/u/4108718?v=4" width="100px;" alt="Paito Anderson"/><br /><sub><b>Paito Anderson</b></sub></a><br /><a href="https://github.com/maxkordiyak/react-native-dropdown-autocomplete/commits?author=PaitoAnderson" title="Code">💻</a></td> |
189 |
| - </tr> |
190 |
| -</table> |
191 |
| - |
192 |
| -<!-- ALL-CONTRIBUTORS-LIST:END --> |
193 |
| - |
194 |
| -This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! |
0 commit comments