R
R
rockwell3232021-09-30 15:27:32
React Native
rockwell323, 2021-09-30 15:27:32

How to properly implement Date Picker in React Native?

I am writing a custom date picker in react native.
6155ab477ae26333585132.png

How to make the text between two strips highlighted and get the value of this text?
Lists of months and dates are implemented through two scrollView => map => text. Two cavities via View with absolute positioning.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Glglgl, 2021-10-08
@rockwell323

Probably no longer relevant, but MB will be useful to someone. but here there is an example via FlatList https://stackoverflow.com/questions/48045696/flatl... , onViewableItemsChanged={onViewRef.current} in this property you get an object and there is an index of the visible element, and then you just do a check in styles , if the indices match, then you highlight

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question