Skip to content

Cannot scroll into ActionSheet #2873

Open
@SupriyaPKalghatgi

Description

@SupriyaPKalghatgi

Description

I have wrapped Flatlist into ActionSheet. Flatlist items do not scroll into actionsheet

Related to

  • Components

Code snippet

      <ActionSheet
        options={actionSheetOptions}
        visible={isActionSheetVisible}
        onDismiss={() => {}}
        renderAction={renderAction}
        containerStyle={{
          height: height,
        }}
      />
      
  const renderAction = (option: ButtonProps, index: number) => {
    return (
      <View key={index}>
          <ActionSheetItemsList />
      </View>
    )
  }
  
  const ActionSheetItemsList = () => {
    return (
       <FlatList
        data={data}
        renderItem={({ item }: any) => renderItem(item)}
        keyExtractor={(_item, index) => index.toString()}
      />
    )
  }

Environment

  • React Native version: 0.72.6
  • React Native UI Lib version: 7.8.0
  • Expo version: 49.0.21

Affected platforms

  • Android
  • iOS

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions