troberts-28 / react-native-timer-picker

A simple, flexible, performant duration picker for React Native apps (Expo & Bare Workflow). Great for timers, alarms and duration inputs. Includes iOS-style haptic and audio feedback.
https://www.npmjs.com/package/react-native-timer-picker
MIT License
143 stars 19 forks source link

TimerPicker not working for android app #29

Closed khadija-nordstone closed 4 months ago

khadija-nordstone commented 5 months ago

<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 commented 5 months ago

Hey @khadija-nordstone,

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

troberts-28 commented 5 months ago

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

troberts-28 commented 5 months ago

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 commented 4 months ago

Hey @khadija-nordstone, any update on this?

troberts-28 commented 4 months ago

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 commented 4 months ago

Closing this because of lack of activity 😴