question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android always dropdown mode

See original GitHub issue

Hello, I’m encountering weird issue. In your examples there is always “modal” mode of picker ( when I run examples from expo on my Xiaomi mi 8, I’m getting modal mode), but when I copy/paste examples into my app, on android I always get “dropdown” mode picker. Even if I set prop {pickerProps: {mode: "modal"}} it is not doing anything and I’m always getting dropdown type of picker.

Is this normal behaviour?

Enclosing my code:

<RNPickerSelect
        placeholder={placeholderObject}
        items={itemsList}
        onValueChange={this.onValueChange}
        onClose={this.onDonePress}
        style={styles.pickerClassic}
        useNativeAndroidPickerStyle={false} // there is no difference when i set this to true
        value={this.state.currentValue}
        Icon={icon}
        pickerProps={{ mode: "dialog" }}
      />

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
sebqqcommented, Mar 26, 2019

My problem is related to this issue https://github.com/facebook/react-native/issues/24055

2reactions
lfkwtzcommented, Mar 26, 2019

Good find on the upstream issue. This is precisely why we always stay one major version behind.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Tweak and Rearrange Android's Quick Settings ...
To add, remove, or rearrange the buttons, open the full Quick Settings panel and tap the three-dot menu icon in the top right....
Read more >
Menus - Android Developers
On Android 3.0 and higher, the options menu is considered to always be open when menu items are presented in the app bar....
Read more >
Get around on your Android phone - Google Support
Open your phone's Settings app. · Go to System and then Gestures and then Swipe up on Home button. · Turn Swipe up...
Read more >
Android Spinner - drop down list | DigitalOcean
This tutorial will give you a hands on experience in using Android Spinner as a drop down menu, passing data using android bundle...
Read more >
How to make an Android Spinner with initial text "Select One"?
from(context); } @Override public final View getView(int position, View convertView, ViewGroup parent) { // This provides the View for the Selected Item in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found