react-native-actions-sheet: Scroll within Flatlist is not working on android with gestureEnabled true

Android

Desired behavior: Flatlist as a child of ActionSheet IS scrollable and ActionSheet CAN be close with a gesture.

Actual behavior: gestureEnabled={true} Flatlist as a child of ActionSheet IS NOT scrollable. ActionSheet CAN be close with a gesture.

gestureEnabled={false} Flatlist as a child of ActionSheet IS scrollable. ActionSheet CAN NOT be close with a gesture.

iOS

Everything works as desired.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

@Dalamar do not use flex on top most view inside ActionSheet. If that’s not the case, post your ActionSheet code here so I can debug this. The height of ActionSheet increases dynamically, no need to provide any height or flex etc.

@derick-bai use FlatList from react-native-gesture-handler

import { FlatList } from 'react-native-gesture-handler';