Questions tagged [react-native-dropdown-picker]
43 questions
1
vote
1 answer
react-hook-form Controller component does not acknowledge react-native-dropdown-picker input as filled
apologies as I'm still fairly new to React Native. I encountered this issue upon replacing some poorly styled dropdown picker with a 3rd party library (react-native-dropdown-picker). I was able to create a pretty workable solution, but the form uses…

Jub10
- 183
- 1
- 2
- 15
1
vote
1 answer
`react-native-dropdown-picker` not selecting default value for multiSelect, if list item having selected:true {label:"A", value:1, selected:true}
I am trying to use multiselect feature of react-native-dropdown-picker which is working fine for selecting item, I can select multiple Items and can get its values too, but my problem is I am not able to show defaultValue on screen load.
I am…

Roshan Bagde
- 87
- 1
- 9
1
vote
0 answers
using DropDownPicker from 'react-native-dropdown-picker' in the modal with many views after
I create DropDownPicker in expo app and when open it the items in dropdownmenu can't be selected if it is out of the container view how can fixed as the container view is small part of design
this simple example:
some data…

Fatma Mahmoud
- 89
- 2
- 13
1
vote
1 answer
I have array from server has name and id want to use it in DropDownPicker got error undefined is not an object (evaluating 'item.label.length')
the array will be like that
[{ id: 1, name: 'coton'}]
how to set label and value to be the name
and this is my code

Fatma Mahmoud
- 89
- 2
- 13
0
votes
1 answer
React Native Dropdown Picker , view full dropdown list
I cannot scroll the page , so i need to view all the dropdown items in the menu, how do i do it ? here is my code.
Any one solution : One i need a way to scroll down the page or I need to view all the items in dropdown at once.

Mastermind
- 1
- 2
0
votes
0 answers
API Callbacks onChangeSearchText - No data showing even there's a data
What I am trying here is to show the output of my search results
this is my reference for the search callback
https://hossein-zare.github.io/react-native-dropdown-picker-website/docs/advanced/search#onchangesearchtext
This is my component
import…

Mathew Agustin Bella
- 85
- 11
0
votes
0 answers
How to test DropDownPicker? Any examples?
I am trying to write tests using '@testing-library/react-native' for the DropDownPicker. Any examples as once I fireEvent press I cannot find a way to find any of the drop down list items. I have already added a testID for each item.

Lorenzo Covarrubias
- 89
- 8
0
votes
1 answer
Dropdown Validation - How to stop FOR LOOP if the value is matched
I'm trying to make a validation for my dropdown, where if the user chose a value that is already chosen the app should prompt a modal for the validation.
I have 2 arrays, first tagsData that I use to display the tags in my dropdown, second is…

user22140489
- 1
- 1
0
votes
0 answers
Overlapping dropdown lists
I am using react-native-dropdown-picker to offer some options to my user.
Currently, i have two dropdowns in the same screen. The problem is that when i open the first dropdown, the list is getting covered by the second dropdown container.
I already…

João Pedro Martins de Paula
- 101
- 11
0
votes
1 answer
React Native component not updating on sibling component state change
I'm using react-native-dropdown-picker to create two drop downs.
Everything is housed within a Form component. The first dropdown component is a list of sites, and once a site is selected, will pass the site back to the Form component and get the…

ayylamow
- 13
- 3
0
votes
0 answers
Problem with picker with search with react-native-dropdown-picker
I am trying to make a picker with search, showing results that I get from a database. To do this I use react-native-dropdown-picker . Well, I manage to use the component, and I'm trying to create a cycle to show the options, but I'm not able. I…

Francisco S
- 109
- 7
0
votes
0 answers
Can not scroll in react-native-dropdown-picker (Expo/React-Native)
Drop down scroll is not working inside a view that I have customed. But when I put it outside the "input_select_container" view and inside the "container" view, it can scroll. When I remove the style of

Cuong Nguyen
- 1
- 2
0
votes
1 answer
How to make the after dropdown not visibile?
The next View component after the dropdown-picker is used is visible. If we exclude the and just use the component. The component is hidden. However, if we use inside the component is not hidden.
I tried using…

Mynameiswha
- 51
- 5
0
votes
1 answer
DropDownPicker worked after clicking second time only
I have two dropdown picker. One is dependent on another one. If I click color on one dropdown another dropdown should show list of colors but its not working properly. If I click on first dropdown first time and select color second dropdown shows…

Anamika Singh
- 109
- 1
- 1
- 6
0
votes
1 answer
react-native-dropdown-picker: TypeError: undefined is not an object (evaluating 'this.setState')
I am currently trying to learn react native and wanted to implement a dropdown menu.
I tried going by the class based example, but im getting the following error:
[Unhandled promise rejection: TypeError: undefined is not an object (evaluating…

Marcel Schulte
- 3
- 2