It seems that onDragStart prop is not been called. The code bellow is an example of a simple console.log to show when the panel starts and stops dragging. It just shows the 'end' console.log
Steps to Reproduce / Code Snippets / Screenshots
import React from 'react'
import {View, TouchableOpacity, Text, ScrollView, Alert} from 'react-native'
import SlidingUpPanel from 'rn-sliding-up-panel'
const styles = {
container: {
flex: 1,
zIndex: 1,
backgroundColor: 'white',
alignItems: 'center',
justifyContent: 'center'
},
dragHandler: {
alignSelf: 'stretch',
height: 64,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#ccc'
}
}
class ScrollViewInsidePanel extends React.Component {
render() {
return (
<View style={styles.container}>
<TouchableOpacity onPress={() => this._panel.show()}>
<View>
<Text>Test</Text>
</View>
</TouchableOpacity>
<SlidingUpPanel
onDragStart={() => console.log('start')}
onDragEnd={() => console.log('end')}
ref={c => (this._panel = c)}>
{dragHandler => (
<View style={styles.container}>
<View style={styles.dragHandler} {...dragHandler}>
<Text>Drag handler</Text>
</View>
<ScrollView>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
<Text>Here is the content inside panel</Text>
</ScrollView>
</View>
)}
</SlidingUpPanel>
</View>
)
}
}
export default ScrollViewInsidePanel
Environment
Version: 2.3.0
React Native version: 0.59.5
Platform(s) (iOS, Android, or both?): Both
Device info (Simulator/Device? OS version? Debug/Release?): Simulator iPhone X, Device Moto G (5S) Plus
Issue Description
It seems that onDragStart prop is not been called. The code bellow is an example of a simple console.log to show when the panel starts and stops dragging. It just shows the 'end' console.log
Steps to Reproduce / Code Snippets / Screenshots
Environment