Skip to content

Percentage does not work with FlatList or ScrollView render item when horizontal is true #17796

Description

@KakarN

Is this a bug report?

Yes

I would like to use the screen's width on the render item of the horizontal FlatList. However, it does not work as expected. When the horizontal is false, the percentage value works. But when the horizontal is true, the percentage value does not work.

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: v7.7.3
Yarn: 1.0.1
npm: 4.1.2

Packages: (wanted => installed)
react-native: 0.52
react: 16.2.0

Target Platform: iOS, Android

Snack link when the FlatList is horizontal

Snack link when the FlatList is NOT horizontal

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions