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.

androidMode not (yet) working?

See original GitHub issue

Hey, i wanted to test the new feature for androidMode='spinner', added today, but it seems it’s not working for me because the calendar view is shown…

my code is rather simple and here’s a snippet from it:

<DatePicker
    date={this.props.birthDate}
    mode='date'
    androidMode='spinner'
    format='YYYY-MM-DD'
/>

Am i doing something wrong?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

9reactions
univers3commented, May 24, 2017

On Android 7.0 I just set mode='date' androidMode='spinner'. The Calendar keeps showing up every time. Someone knows why? This is the code:

<DatePicker
    showIcon={false}
    style={{width: 110}}
    date={this.state.date}
    mode='date'
    placeholder="Clicca qui"
    format="DD/MM/YYYY"
    minDate="14/04/1900"
    maxDate={today}
    confirmBtnText="Confirm"
    cancelBtnText="Cancel"
    customStyles={{
      dateIcon: {
        position: 'absolute',
        left: 0,
        top: 4,
        marginLeft: 0
      }
    }}
    onDateChange={(date) => {this.setState({date: date})}}
    androidMode='spinner'
/>

Thanks!

4reactions
quintonncommented, Aug 29, 2017

I have same issue on Android 7. Seeing calendar and no spinner. Only on Android 7’s.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Mode not working - Processing Forum
I'm using processing 2.0b9, for some reason the android mode is not installed by default in this version, so when I try to...
Read more >
[Android] mode = {"time"} not working in Android #137 - GitHub
In date picker mode = {"time"} is not working in Android, but works fine in IOS. Expected behavior. A clear and concise description...
Read more >
Android Studio not showing modules in project structure
Expand your module gradle and run the Run Configurations task. After that refresh the content and refresh the project structure. It should work...
Read more >
Pun2 working in android mode debug. but not ... - photon forum
When I work photon test mode works without problems, but when I generate the apk and install it it generates the following error:...
Read more >
Wacom Intuos S only recognized in Android Mode - Ask Ubuntu
However, it seems to no longer be recognized by libwacom, ... by system utils but still not working properly (still in android mode)....
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