react-native-wheel-picker icon indicating copy to clipboard operation
react-native-wheel-picker copied to clipboard

WheelPicker not working inside a ScrollView

Open prateekchachra opened this issue 4 years ago • 1 comments

WheelPicker doesn't work inside a ScrollView component. If I were to put it inside a ScrollView it doesn't scroll down.

prateekchachra avatar Oct 07 '19 10:10 prateekchachra

Sorry for the late reply but one workaround can be:

const [scrollEnabled, setScrollEnabled] = useState(true);

return ( <ScrollView ... scrollEnabled={scrollEnabled} > <TimePicker ... onScroll={(val)=>{setScrollEnabled(!val)}} /> </ScrollView> )

Prasiddha22 avatar Sep 20 '22 07:09 Prasiddha22