octopitus / rn-sliding-up-panel

Draggable sliding up panel implemented in React Native https://octopitus.github.io/rn-sliding-up-panel/
MIT License
930 stars 157 forks source link

Not able to use ScrollView inside Panel #212

Open ankitvat opened 2 years ago

ankitvat commented 2 years ago

Issue Description

App Crashes on implementing ScrollView inside panel

Steps to Reproduce / Code Snippets / Screenshots

Tried manually setting allowDragging to false and then true, still not working.

<SlidingUpPanel ref={slideRef} draggableRange={draggableRange} animatedValue={draggedValue} allowDragging={true} snappingPoints={[360]} height={h} friction={0.2}>

{ toggleListItem(); }} style={[styles.icons, {zIndex: 1, elevation: 1}]}> {setDrag(false)}} onTouchEnd={() => {setDrag(true)}} onTouchCancel={() => {setDrag(true)}} horizontal={true} showsHorizontalScrollIndicator={false}> {filters.map((item, index) => { return ( ); })} {/* */}
    </SlidingUpPanel>       

Environment

pristinejudah commented 2 years ago

@ankitvat Here's a working sample on using ScrollView within the SlidingPanel

https://github.com/octopitus/rn-sliding-up-panel/blob/master/demo/ScrollViewInsidePanel.js