wix / react-native-ui-lib

UI Components Library for React Native

Home Page:https://wix.github.io/react-native-ui-lib/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot scroll into ActionSheet

SupriyaPKalghatgi opened this issue · comments

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

@ethanshar Similar issue without solution #1691 #1505

@nitzanwix Is there a way to fix this?

@ethanshar I am stuck at this issue over a month and I dont get any response from the team