-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScollView does not work within the drawer #7
Comments
|
Oh! I got the same problem. |
add
|
<BottomDrawer
containerHeight={420}
offset={10}
downDisplay={340}
roundedEdges={true}
panResponder={false} // add panResponder to false
responder={(panHandlers) => {
return (
<ScrollView horizontal={true}>
<TouchableOpacity>
<View style={styles.date} {...panHandlers}><Text>BottomDrawer</Text></View>
<View style={styles.date}><Text>Today</Text></View>
<View style={styles.date}><Text>Today</Text></View>
<View style={styles.date}><Text>Today</Text></View>
<View style={styles.date}><Text>Today</Text></View>
<View style={styles.date}><Text>Today</Text></View>
<View style={styles.date}><Text>Today</Text></View>
<View style={styles.date}><Text>Today</Text></View>
<View style={styles.date}><Text>Today</Text></View>
</TouchableOpacity>
</ScrollView>
)
}}
/> |
If swipe on the horizontal |
Still not working for me with <View>
<BottomDrawer containerHeight={screenHeight * 0.95}
startUp={false}
downDisplay={screenHeight * 0.75}
shadow={true}
style={styles.bottomDrawer}
>
<View style={styles.topBar} />
<ScrollView style={styles.listContainer}>
<TouchableOpacity activeOpacity={1}>
{ content.map((item, index) =>
<ListItem title={item.name}
leftAvatar={{ source: { uri: item.image } }}
subtitle={item.description}
key={index}
subtitleStyle={styles.listSubtitle}
/>
)}
</TouchableOpacity>
</ScrollView>
</BottomDrawer>
</View> |
How can I add a FlatList instead of a scrollview? |
Wrapping TouchableOpacity around each renderItem did the trick for me |
Thanks! save my life |
but how you slide down the drawer? |
If You also set the nested ScrollView / FlatList style to have a zIndex : 1 , then the first tap gesture made should be detected by the scrolling view before the bottom sheet. this was my only working work around for nested scroll view in BottomSheet for Android. Still works the same on IOS. Also, use FlatlLst or ScrollView from react-native-gesture-handler instead of react-native |
My code displays the view with the items going off the screen but the view will not scroll. I have tried messing with zIndex and wrapping in views etc with no luck. I have also tried a vertical scroll view and it does not scroll either. Any help is appreciated.
The text was updated successfully, but these errors were encountered: