Skip to content

Flashlist doesn't support overflow: 'visible' #1997

@SSHristow

Description

@SSHristow

Description

Thanks for the amazing library. I'm not sure if this is more of a bug or a feature. But I have the following issue:

I need to apply overflow: 'visible' on the FlashList in order to achieve the following design 👇

Currently, this is implemented with FlatList

<FlatList
   style={{ overflow: 'visible', backgroundColor: 'red' }}
...rest
Image

As you can see, the "masks" need to overflow the list.

Here is the result when using FlashList

<FlashList
     style={{ overflow: 'visible', backgroundColor: 'red' }}
{...rest}
Image

Overflow doesn't work, and masks are cut

Current behavior

overflow: 'visible' doesn't do anything. I tried to put it on every style prop of the Flashlist, but it doesn't work

Expected behavior

Reproduction

In the renderItem I'm rendering the mask and the card. The masked is taking the size of the card and I'm applying scale 1.25

{
    position: 'absolute',
    left: '50%',
    top: '50%',
    transform: [{ translateX: '-50%' }, { translateY: '-50%' }, { scale: 1.25 }],
  }

Expo Snack or minimal reproduction link:

Platform

  • iOS
  • Android
  • Web (if applicable)

Environment

React Native info output:
Paste output here

FlashList version:

Additional context

Checklist

  • I've searched existing issues and couldn't find a duplicate
  • I've provided a minimal reproduction (Expo Snack preferred)
  • I'm using the latest version of @shopify/flash-list
  • I've included all required information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions