Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimerPicker not working for android app #29

Closed
khadija-nordstone opened this issue Jun 13, 2024 · 6 comments
Closed

TimerPicker not working for android app #29

khadija-nordstone opened this issue Jun 13, 2024 · 6 comments

Comments

@khadija-nordstone
Copy link

khadija-nordstone commented Jun 13, 2024

<TimerPicker onDurationChange={setDuration} initialHours={0} initialMinutes={0} initialSeconds={0} disableInfiniteScroll={true} hideSeconds={true} hourLabel="hr" minuteLabel="min" LinearGradient={LinearGradient} styles={pickerStyles} />

Picker styles:
const pickerStyles = { theme: 'light', backgroundColor: '#ffffff', pickerItem: { fontSize: 18, }, pickerLabel: { fontSize: 18, }, pickerContainer: { justifyContent: 'center', columnGap: 16, }, pickerLabelContainer: { right: -16, }, }

I have added all the necessary imports. I'm using bare react native (0.73.6).
The time picker is not scrollable on Android but works fine on iOS.

@troberts-28
Copy link
Owner

Hey @khadija-nordstone,

Can you share more info to help me track down this issue? It would be great to have:

  • your code
  • whether you are running in Expo or bare React Native
  • whether you're seeing a crash or some other behaviour

@troberts-28
Copy link
Owner

Thanks for the extra info @khadija-nordstone, I'll look into this

@troberts-28
Copy link
Owner

troberts-28 commented Jun 23, 2024

Hey @khadija-nordstone,

I'm not having any issues when I run your code with that React Native version on Android. Are you by any chance nesting the component inside a vertical scrollview?

If you are, please upgrade to the latest version of the library (v1.9.0) as I've just made the picker scrollable when nested.

@troberts-28
Copy link
Owner

Hey @khadija-nordstone, any update on this?

@troberts-28
Copy link
Owner

Hey @khadija-nordstone, there hasn't been any activity on this issue for a while. If there are no further updates or discussions in the next 2 weeks, I'll close this issue to keep the repository tidy. Please let me know if this is still relevant or if there are any updates. Thanks!

@troberts-28
Copy link
Owner

Closing this because of lack of activity 😴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants