Skip to content

Commit d3848a4

Browse files
author
Timothée Vialatoux
committed
Fix FlatList not working because of the forced flex style attribute
Some testing in Snack showed that the `FlatList` component was not properly working, the main reason being that the `flex` style attribute was forced to `1` in the `FlatList` component. For whatever reason, when this settings is set, either the Webpreview fail to render the FLatlist, or the Appetize preview do.
1 parent 5a4868a commit d3848a4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/core/src/mappings/FlatList.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ export const SEED_DATA = {
1515
description: "A basic List component",
1616
category: COMPONENT_TYPES.data,
1717
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
18-
layout: {
19-
flex: 1,
20-
},
2118
triggers: [Triggers.OnRefresh, Triggers.OnEndReached],
2219
props: {
2320
onRefresh: createActionProp(),

0 commit comments

Comments
 (0)