G
G
Glglgl2021-09-28 16:43:41
React Native
Glglgl, 2021-09-28 16:43:41

How to make a modal window with scrolling values, like when setting an alarm?

I can't find a datetime pecker implementation for android with scrolling values. It is necessary approximately so only with my styles.
61531b2fe13f2977377244.jpeg
For iPhones, there is a similar option,
61531b924476c090336407.jpeg
but for Android, all implementations look like this
61531bc3c32d4417942231.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Berezansky, 2021-10-03
@berezanskiy

For react-native-datetimepicker set display="spinner" property.
datetimepicker

G
Glglgl, 2021-10-08
@Glglgl

I needed my own styling, in the end I did it through FlatList, I just limited the visibility width of the list and took the code here. https://stackoverflow.com/questions/48045696/flatl...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question