React Wheel Picker Uses Native Scrolling for iOS-Style Time and Date Selection
A guide explains how to build a React wheel picker that feels native on phones by letting the browser handle scrolling, using a scroll-snap list with momentum and rubber-band effects. Each row is rotated on a 3D cylinder in a single animation frame based on scroll position, and the selected value is committed only once the wheel comes to rest. The author recommends wheels for times, durations and birth dates on mobile, while keeping typed fields on desktop and handling mouse, scroll wheel and keyboard input separately. Two React wheel packages, @ncdai/react-wheel-picker and react-mobile-picker, were compared, both of which implement their own touch physics rather than relying on native scrolling. The guide also cites Apple's Human Interface Guidelines on when a picker suits medium-to-long lists better than other controls.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in