Skip to content

Commit

Permalink
Remove scrollView
Browse files Browse the repository at this point in the history
  • Loading branch information
nnnnoel committed Sep 21, 2021
1 parent 9b1b0a1 commit 9d760e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-swipe-up-panel",
"version": "1.2.12",
"version": "1.2.13",
"description": "Swipeable bottom panel for react native",
"author": "Enes Ozturk",
"license": "MIT",
Expand Down
24 changes: 1 addition & 23 deletions src/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import {
Dimensions,
PanResponder,
PanResponderInstance,
ScrollView,
ScrollViewProps,
StyleSheet,
TouchableHighlight,
TouchableWithoutFeedback,
View,
} from 'react-native';
Expand Down Expand Up @@ -317,27 +315,7 @@ class SwipeablePanel extends React.Component<
onPress={this.props.onClose}
/>
)}
<ScrollView
onTouchStart={() => {
return false;
}}
onTouchEnd={() => {
return false;
}}
{...this.props.scrollViewProps}
contentContainerStyle={[
SwipeablePanelStyles.scrollViewContentContainerStyle,
this.props.scrollViewProps?.contentContainerStyle,
]}
>
{this.state.canScroll ? (
<TouchableHighlight>
<>{this.props.children}</>
</TouchableHighlight>
) : (
this.props.children
)}
</ScrollView>
{this.props.children}
</Animated.View>
</Animated.View>
) : null;
Expand Down

0 comments on commit 9d760e6

Please sign in to comment.