Skip to content

Enable custom background color on AutoCompleteSuggestionList Flatlist #3438

@normanwilde

Description

@normanwilde

In AutoCompleteSuggestionList.tsx, the FlatList style prop is the following.

 style={[
          styles.flatlist,
          flatlist,
          { backgroundColor: white, maxHeight, shadowColor: black },
        ]}

We'd like to make the backgroundColor customizable.

Motivation
We use a custom AutoCompleteSuggestionItem with a custom background. We'd like to have the same background for the list itself (which is revealed when the list overscrolled in either direction).

Image

Proposed solution
Change the style array item order

style={[
          styles.flatlist,
          { backgroundColor: white, maxHeight, shadowColor: black },
          flatlist,
        ]}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions