Skip to content

Error: Invariant Violation: ScrollView child layout (["alignItems","justifyContent"]) must be applied through the contentContainerStyle prop #408

@eduardo-santos-tribia

Description

@eduardo-santos-tribia

I'm having the following error after updating from v1.9.0 to v1.10.0:

Error: Invariant Violation: ScrollView child layout (["alignItems","justifyContent"]) must be applied through the contentContainerStyle prop

This error is happening because I'm passing alignItems and justifyContent to the flatContainerStyle props in the RichToolbar component. For some reason, the v1.10.0 is using the flatContainerStyle value to set the style prop of the FlatList instead of using it to set the contentContainerStyle.

I've created a PR to fix this: #407

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions