Questions tagged [react-native-picker]
27 questions
0
votes
2 answers
Can I change a component I downloaded in react-native project from node_modules?
I want to use a kinda outdated module react-native-numbers-please (last update 2 years ago), but it doesn't work. I think it's because it uses a Picker from react-native. I've changed that in the module's NumbersPlease.tsx which is the main file…

Nemanja Mitric
- 75
- 6
0
votes
1 answer
React native wheel picker view(IOS Type view)
Any package recommendation are helpful which provide similar view for both (android and iOS) similar to https://github.com/TronNattakorn/react-native-wheel-pick
Note: I am currently using https://github.com/TronNattakorn/react-native-wheel-pick for…

Swati Redhu
- 1
- 3
0
votes
1 answer
Native Base picker: how to add margin/padding to top?
In my React Native app I'm using the Native Base picker. On the iPhone 12 emulator, when the list to select from pops up it's pushed far to the top of the screen, and I have to tap just below the Back button for it to work. How can I put…

gkeenley
- 6,088
- 8
- 54
- 129
0
votes
1 answer
Populate Picker items with data from Firebase Realtime Database in React Native
I am trying to use Firebase Realtime Database to populate the items in picker (@react-native-picker/picker) and have failed repeatedly.
I am also attaching a minimal reproducible example below.
Through the onPress event, console.log() is printing…

Niket
- 63
- 1
- 5
0
votes
1 answer
How to call a function when pressing the default react native picker in react native
I'm using react-native picker in dialog mode. Now I want to call a function whenever the dialog opens. How can I achieve that because there is no onPress prop? Any help will be appreciated. Please don't recommend any other packages because I want to…

Wahas Ali Mughal
- 187
- 2
- 11
0
votes
1 answer
React Native Picker only render after click
I'm using @react-native-picker/picker on my project and the list only render after the first click on the picker.
{
let state =…
0
votes
1 answer
Render Picker Items from React-Native picker to populate drop-menu selections
I am successfully using the react-native picker to render a drop-menu in one of my components. Right now, in the picker code I am hardcoding the values used to populate the drop-menu items. What I'd ideally like to do is pass these in as props, and…

Muirik
- 6,049
- 7
- 58
- 116
0
votes
1 answer
Invariant Violation: Tried to register two views with the same name RNDateTimePicker
Getting this error when importing:
import DropDownPicker from 'react-native-dropdown-picker';
import DateTimePicker from '@react-native-community/datetimepicker';
…

S.Troy
- 117
- 2
- 8
0
votes
0 answers
React Native Picker field refreshed too many times when changing value
I've been struggling with a Picker item which refreshes too many times when changing it's value. The element is used for changing Settings in the app and storing it in the internal storage thanks to AsyncStorage.
I'm using createContext and my…

remyremy
- 3,548
- 3
- 39
- 56
0
votes
0 answers
React native Picker onValueChange is not triggering with multiline picker item
I have added multiline support to the react native Picker by adding this
Android: Strings.xml