0.9.1-beta.97
Beta@xaui/native@0.9.1-beta.97
Patch Changes
-
6ae0c41:
SlideButton— slide-to-confirm, theSlider's gesture without the value (P5.35d)The button you drag rather than tap, for the action that must not happen by accident: the thumb runs a
Gesture.Panon the same optionalreact-native-gesture-handlerpeer theSliderreaches for, the pill measures its own width on layout, and the travel is inset by the thumb at each end — but there is nomin,maxorstep, because the only positions that mean anything are "not yet" and "done".onConfirmfires once when the thumb passesthreshold(0.9 by default); below it the thumb springs home. Uncontrolled it is a one-shot and stays confirmed; passisConfirmedto drive and re-arm it. Everything the finger does stays on the UI thread — the offset is a shared value the fill and the disc read — with a singlerunOnJShop on release.<SlideButton>Slide to confirm</SlideButton>composes the fill, label and thumb from a bare string; the slots —SlideButton.Fill,SlideButton.Label,SlideButton.Thumb,SlideButton.Icon— are there to drop the trail or put a mark in the disc. The ten flat variants,sizeon the height and the type only, and acolorthat lands on the pill but never on the surface-coloured disc. The built-in chevron is drawn from two borders and flips itself under RTL; a drag reaches a screen reader through anactivateaction rather than anonPress.