You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add Masonry List and Support for OnRefresh
* Fix Triggers and Props
* Oops
* Update packages/types/src/component-types.ts
Co-authored-by: Allen Nelson <[email protected]>
* Update packages/types/src/component-types.ts
Co-authored-by: Allen Nelson <[email protected]>
Co-authored-by: Allen Nelson <[email protected]>
description: "Approximate size of the items before rendering.",
35
+
defaultValue: 50,
36
+
step: 1,
37
+
precision: 0,
38
+
}),
39
+
optimizeItemArrangement: createStaticBoolProp({
40
+
label: "Optimize Item Arrangement",
41
+
description:
42
+
"If enabled, MasonryFlashList will try to reduce difference in column height by modifying item order. If true, specifying overrideItemLayout is required. Default value is false.",
43
+
}),
44
+
onEndReachedThreshold: createStaticNumberProp({
45
+
label: "End Reached Threshold",
46
+
description:
47
+
"How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
48
+
defaultValue: 0.5,
49
+
}),
50
+
},
19
51
},
20
-
props: {
21
-
estimatedItemSize: createNumberProp({
22
-
group: GROUPS.basic,
23
-
label: "Est. Item Size",
24
-
description: "Approximate size of the items before rendering.",
description: "Approximate size of the items before rendering.",
70
+
defaultValue: 50,
71
+
step: 1,
72
+
precision: 0,
73
+
}),
74
+
horizontal: createStaticBoolProp({
75
+
label: "Horizontal",
76
+
description: "Render list horizontally",
77
+
}),
78
+
inverted: createStaticBoolProp({
79
+
label: "Inverted",
80
+
description: "If true, reverses the direction.",
81
+
}),
82
+
numColumns: createNumColumnsType({
83
+
editable: true,
84
+
}),
85
+
onEndReachedThreshold: createStaticNumberProp({
86
+
label: "End Reached Threshold",
87
+
description:
88
+
"How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
descriprion: "How many items to render in the initial batch",
38
+
}),
39
+
onEndReachedThreshold: createStaticNumberProp({
40
+
label: "End Reached Threshold",
41
+
description:
42
+
"How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the onEndReached callback. Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.",
0 commit comments