@draftbit/core 50.1.2-0962b7.2 → 50.1.2-4a0501.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/SectionList/SectionList.js +1 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleFlashList.js +1 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleFlatList.js +1 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +1 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +1 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleScrollView.js +1 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleSectionList.js +1 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +1 -1
- package/lib/commonjs/components/SwipeableItem/SwipeableList.js +1 -1
- package/lib/typescript/src/components/SectionList/SectionList.d.ts +4 -6
- package/lib/typescript/src/components/SectionList/SectionList.js +4 -4
- package/lib/typescript/src/components/SectionList/SectionList.js.map +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlashList.d.ts +1 -2
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js +3 -3
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js.map +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.d.ts +1 -2
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +3 -3
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.d.ts +1 -2
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +3 -3
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js.map +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.d.ts +2 -2
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +3 -3
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js.map +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleScrollView.d.ts +1 -2
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js +3 -3
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js.map +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.d.ts +2 -6
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js +3 -3
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js.map +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.d.ts +2 -6
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +3 -3
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js.map +1 -1
- package/lib/typescript/src/components/SwipeableItem/SwipeableList.d.ts +3 -3
- package/lib/typescript/src/components/SwipeableItem/SwipeableList.js +4 -4
- package/lib/typescript/src/components/SwipeableItem/SwipeableList.js.map +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/SectionList/SectionList.js +4 -4
- package/src/components/SectionList/SectionList.js.map +1 -1
- package/src/components/SectionList/SectionList.tsx +145 -152
- package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js +3 -3
- package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js.map +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.tsx +16 -22
- package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +3 -3
- package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx +16 -22
- package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +3 -3
- package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js.map +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.tsx +13 -20
- package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +3 -3
- package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js.map +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.tsx +17 -27
- package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js +3 -3
- package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js.map +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.tsx +13 -20
- package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js +3 -3
- package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js.map +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.tsx +20 -28
- package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +3 -3
- package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js.map +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx +20 -28
- package/src/components/SwipeableItem/SwipeableList.js +4 -4
- package/src/components/SwipeableItem/SwipeableList.js.map +1 -1
- package/src/components/SwipeableItem/SwipeableList.tsx +32 -47
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "50.1.2-
|
|
3
|
+
"version": "50.1.2-4a0501.2+4a05010",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"types": "lib/typescript/src/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@date-io/date-fns": "^1.3.13",
|
|
43
43
|
"@draftbit/react-theme-provider": "^2.1.1",
|
|
44
|
-
"@draftbit/types": "^50.1.2-
|
|
44
|
+
"@draftbit/types": "^50.1.2-4a0501.2+4a05010",
|
|
45
45
|
"@expo/vector-icons": "^14.0.0",
|
|
46
46
|
"@gorhom/bottom-sheet": "5.0.0-alpha.7",
|
|
47
47
|
"@material-ui/core": "^4.11.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
],
|
|
118
118
|
"testEnvironment": "node"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "4a050104de823d59693b38fbabe7b1443309d2c5"
|
|
121
121
|
}
|
|
@@ -4,7 +4,7 @@ import { FlatList } from "react-native";
|
|
|
4
4
|
import SectionHeader, { DefaultSectionHeader } from "./SectionHeader";
|
|
5
5
|
import { flattenReactFragments } from "../../utilities";
|
|
6
6
|
export const DEFAULT_SECTION = "Uncategorized";
|
|
7
|
-
const SectionList =
|
|
7
|
+
const SectionList = ({ sectionKey, stickyHeader = false, listComponent = "FlatList", data: dataProp, renderItem: renderItemProp, keyExtractor: keyExtractorProp, ...rest }) => {
|
|
8
8
|
const data = React.useMemo(() => (Array.isArray(dataProp) ? dataProp : []), [dataProp]);
|
|
9
9
|
const dataWithSections = React.useMemo(() => {
|
|
10
10
|
var _a;
|
|
@@ -102,10 +102,10 @@ const SectionList = React.forwardRef(({ sectionKey, stickyHeader = false, listCo
|
|
|
102
102
|
};
|
|
103
103
|
switch (listComponent) {
|
|
104
104
|
case "FlatList":
|
|
105
|
-
return (React.createElement(FlatList, {
|
|
105
|
+
return (React.createElement(FlatList, { stickyHeaderIndices: sectionHeaderIndicies, ...rest, data: dataWithSections, renderItem: renderItem, keyExtractor: keyExtractor }));
|
|
106
106
|
case "FlashList":
|
|
107
|
-
return (React.createElement(FlashList, {
|
|
107
|
+
return (React.createElement(FlashList, { stickyHeaderIndices: sectionHeaderIndicies, ...rest, data: dataWithSections, renderItem: renderItem, keyExtractor: keyExtractor }));
|
|
108
108
|
}
|
|
109
|
-
}
|
|
109
|
+
};
|
|
110
110
|
export default SectionList;
|
|
111
111
|
//# sourceMappingURL=SectionList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionList.js","sourceRoot":"","sources":["SectionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAiB,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,aAAa,EAAE,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAqCxD,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAE/C,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"SectionList.js","sourceRoot":"","sources":["SectionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAiB,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,aAAa,EAAE,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAqCxD,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAE/C,MAAM,WAAW,GAAG,CAAmC,EACrD,UAAU,EACV,YAAY,GAAG,KAAK,EACpB,aAAa,GAAG,UAAU,EAC1B,IAAI,EAAE,QAAQ,EACd,UAAU,EAAE,cAAc,EAC1B,YAAY,EAAE,gBAAgB,EAC9B,GAAG,IAAI,EACoD,EAAE,EAAE;IAC/D,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CACxB,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAA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AAE;QACrB,KAAK,UAAU;YACb,OAAO,CACL,oBAAC,QAAQ,IACP,mBAAmB,EAAE,qBAAqB,KACrC,IAA0C,EAC/C,IAAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,GAC1B,CACH,CAAC;QACJ,KAAK,WAAW;YACd,OAAO,CACL,oBAAC,SAAS,IACR,mBAAmB,EAAE,qBAAqB,KACrC,IAA2C,EAChD,IAAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,GAC1B,CACH,CAAC;KACL;AACH,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -41,175 +41,168 @@ type SectionListItem<T> = SectionListDataItem<T> | SectionListSectionItem;
|
|
|
41
41
|
|
|
42
42
|
export const DEFAULT_SECTION = "Uncategorized";
|
|
43
43
|
|
|
44
|
-
const SectionList =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
if (sectionDataItems[section]) {
|
|
69
|
-
sectionDataItems[section].push(item);
|
|
70
|
-
} else {
|
|
71
|
-
sectionDataItems[section] = [item];
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
for (const section in sectionDataItems) {
|
|
76
|
-
result.push({ type: "SECTION_ITEM", title: section });
|
|
77
|
-
const sectionItems: SectionListDataItem<T>[] = sectionDataItems[
|
|
78
|
-
section
|
|
79
|
-
].map((item) => ({ type: "DATA_ITEM", data: item }));
|
|
80
|
-
result.push(...sectionItems);
|
|
44
|
+
const SectionList = <T extends { [key: string]: any }>({
|
|
45
|
+
sectionKey,
|
|
46
|
+
stickyHeader = false,
|
|
47
|
+
listComponent = "FlatList",
|
|
48
|
+
data: dataProp,
|
|
49
|
+
renderItem: renderItemProp,
|
|
50
|
+
keyExtractor: keyExtractorProp,
|
|
51
|
+
...rest
|
|
52
|
+
}: FlatListSectionListProps<T> | FlashListSectionListProps<T>) => {
|
|
53
|
+
const data = React.useMemo(
|
|
54
|
+
() => (Array.isArray(dataProp) ? dataProp : []) as T[],
|
|
55
|
+
[dataProp]
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const dataWithSections = React.useMemo(() => {
|
|
59
|
+
const result: SectionListItem<T>[] = [];
|
|
60
|
+
const sectionDataItems: { [key: string]: T[] } = {};
|
|
61
|
+
|
|
62
|
+
for (const item of data) {
|
|
63
|
+
const section = item[sectionKey]?.toString() || DEFAULT_SECTION;
|
|
64
|
+
if (sectionDataItems[section]) {
|
|
65
|
+
sectionDataItems[section].push(item);
|
|
66
|
+
} else {
|
|
67
|
+
sectionDataItems[section] = [item];
|
|
81
68
|
}
|
|
69
|
+
}
|
|
82
70
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
() =>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
.filter((item) => item.type === "SECTION_ITEM")
|
|
91
|
-
.map((item) => dataWithSections.indexOf(item))
|
|
92
|
-
: undefined,
|
|
93
|
-
[dataWithSections, stickyHeader]
|
|
94
|
-
);
|
|
71
|
+
for (const section in sectionDataItems) {
|
|
72
|
+
result.push({ type: "SECTION_ITEM", title: section });
|
|
73
|
+
const sectionItems: SectionListDataItem<T>[] = sectionDataItems[
|
|
74
|
+
section
|
|
75
|
+
].map((item) => ({ type: "DATA_ITEM", data: item }));
|
|
76
|
+
result.push(...sectionItems);
|
|
77
|
+
}
|
|
95
78
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
79
|
+
return result;
|
|
80
|
+
}, [data, sectionKey]);
|
|
81
|
+
|
|
82
|
+
const sectionHeaderIndicies = React.useMemo(
|
|
83
|
+
() =>
|
|
84
|
+
stickyHeader
|
|
85
|
+
? dataWithSections
|
|
86
|
+
.filter((item) => item.type === "SECTION_ITEM")
|
|
87
|
+
.map((item) => dataWithSections.indexOf(item))
|
|
88
|
+
: undefined,
|
|
89
|
+
[dataWithSections, stickyHeader]
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
const extractSectionHeader = (
|
|
93
|
+
element: JSX.Element | null
|
|
94
|
+
): JSX.Element | null => {
|
|
95
|
+
if (!element) {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
102
98
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
const props = element.props || {};
|
|
100
|
+
const children = flattenReactFragments(
|
|
101
|
+
React.Children.toArray(props.children) as React.ReactElement[]
|
|
102
|
+
);
|
|
107
103
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
104
|
+
if (element.type === SectionHeader) {
|
|
105
|
+
return element;
|
|
106
|
+
} else {
|
|
107
|
+
for (const child of children) {
|
|
108
|
+
if (child.type === SectionHeader) {
|
|
109
|
+
return child;
|
|
115
110
|
}
|
|
116
111
|
}
|
|
112
|
+
}
|
|
113
|
+
return null;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const extractRemainingNonSectionHeader = (
|
|
117
|
+
element: JSX.Element | null
|
|
118
|
+
): JSX.Element | null => {
|
|
119
|
+
if (!element) {
|
|
117
120
|
return null;
|
|
118
|
-
}
|
|
121
|
+
}
|
|
119
122
|
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
const props = element.props || {};
|
|
124
|
+
const children = flattenReactFragments(
|
|
125
|
+
React.Children.toArray(props.children) as React.ReactElement[]
|
|
126
|
+
);
|
|
127
|
+
if (element.type === SectionHeader) {
|
|
128
|
+
return null;
|
|
129
|
+
} else {
|
|
130
|
+
const newChildren = [];
|
|
131
|
+
for (const child of children) {
|
|
132
|
+
if (child.type !== SectionHeader) {
|
|
133
|
+
newChildren.push(child);
|
|
134
|
+
}
|
|
125
135
|
}
|
|
136
|
+
return React.cloneElement(element, {
|
|
137
|
+
...props,
|
|
138
|
+
children: newChildren,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
};
|
|
126
142
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
return React.cloneElement(element, {
|
|
141
|
-
...props,
|
|
142
|
-
children: newChildren,
|
|
143
|
+
const renderItem = ({
|
|
144
|
+
item,
|
|
145
|
+
index,
|
|
146
|
+
}: {
|
|
147
|
+
item: SectionListItem<T>;
|
|
148
|
+
index: number;
|
|
149
|
+
}) => {
|
|
150
|
+
switch (item.type) {
|
|
151
|
+
case "SECTION_ITEM": {
|
|
152
|
+
const renderedItem = renderItemProp({
|
|
153
|
+
index,
|
|
154
|
+
section: item.title,
|
|
143
155
|
});
|
|
156
|
+
return (
|
|
157
|
+
extractSectionHeader(renderedItem) || (
|
|
158
|
+
<DefaultSectionHeader title={item.title} />
|
|
159
|
+
)
|
|
160
|
+
);
|
|
144
161
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
index: number;
|
|
153
|
-
}) => {
|
|
154
|
-
switch (item.type) {
|
|
155
|
-
case "SECTION_ITEM": {
|
|
156
|
-
const renderedItem = renderItemProp({
|
|
157
|
-
index,
|
|
158
|
-
section: item.title,
|
|
159
|
-
});
|
|
160
|
-
return (
|
|
161
|
-
extractSectionHeader(renderedItem) || (
|
|
162
|
-
<DefaultSectionHeader title={item.title} />
|
|
163
|
-
)
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
case "DATA_ITEM": {
|
|
167
|
-
const renderedItem = renderItemProp({
|
|
168
|
-
item: item.data,
|
|
169
|
-
index,
|
|
170
|
-
section: item.data[sectionKey] || DEFAULT_SECTION,
|
|
171
|
-
});
|
|
172
|
-
return extractRemainingNonSectionHeader(renderedItem);
|
|
173
|
-
}
|
|
162
|
+
case "DATA_ITEM": {
|
|
163
|
+
const renderedItem = renderItemProp({
|
|
164
|
+
item: item.data,
|
|
165
|
+
index,
|
|
166
|
+
section: item.data[sectionKey] || DEFAULT_SECTION,
|
|
167
|
+
});
|
|
168
|
+
return extractRemainingNonSectionHeader(renderedItem);
|
|
174
169
|
}
|
|
175
|
-
}
|
|
170
|
+
}
|
|
171
|
+
};
|
|
176
172
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
173
|
+
const keyExtractor = (item: SectionListItem<T>, index: number) => {
|
|
174
|
+
switch (item.type) {
|
|
175
|
+
case "SECTION_ITEM": {
|
|
176
|
+
return `section_${index.toString()}`;
|
|
177
|
+
}
|
|
178
|
+
case "DATA_ITEM": {
|
|
179
|
+
return keyExtractorProp?.(item.data, index) || index.toString();
|
|
185
180
|
}
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
switch (listComponent) {
|
|
189
|
-
case "FlatList":
|
|
190
|
-
return (
|
|
191
|
-
<FlatList
|
|
192
|
-
ref={ref as React.Ref<FlatList>}
|
|
193
|
-
stickyHeaderIndices={sectionHeaderIndicies}
|
|
194
|
-
{...(rest as FlatListProps<SectionListItem<T>>)}
|
|
195
|
-
data={dataWithSections}
|
|
196
|
-
renderItem={renderItem}
|
|
197
|
-
keyExtractor={keyExtractor}
|
|
198
|
-
/>
|
|
199
|
-
);
|
|
200
|
-
case "FlashList":
|
|
201
|
-
return (
|
|
202
|
-
<FlashList
|
|
203
|
-
ref={ref as React.Ref<FlashList<SectionListItem<T>>>}
|
|
204
|
-
stickyHeaderIndices={sectionHeaderIndicies}
|
|
205
|
-
{...(rest as FlashListProps<SectionListItem<T>>)}
|
|
206
|
-
data={dataWithSections}
|
|
207
|
-
renderItem={renderItem}
|
|
208
|
-
keyExtractor={keyExtractor}
|
|
209
|
-
/>
|
|
210
|
-
);
|
|
211
181
|
}
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
switch (listComponent) {
|
|
185
|
+
case "FlatList":
|
|
186
|
+
return (
|
|
187
|
+
<FlatList
|
|
188
|
+
stickyHeaderIndices={sectionHeaderIndicies}
|
|
189
|
+
{...(rest as FlatListProps<SectionListItem<T>>)}
|
|
190
|
+
data={dataWithSections}
|
|
191
|
+
renderItem={renderItem}
|
|
192
|
+
keyExtractor={keyExtractor}
|
|
193
|
+
/>
|
|
194
|
+
);
|
|
195
|
+
case "FlashList":
|
|
196
|
+
return (
|
|
197
|
+
<FlashList
|
|
198
|
+
stickyHeaderIndices={sectionHeaderIndicies}
|
|
199
|
+
{...(rest as FlashListProps<SectionListItem<T>>)}
|
|
200
|
+
data={dataWithSections}
|
|
201
|
+
renderItem={renderItem}
|
|
202
|
+
keyExtractor={keyExtractor}
|
|
203
|
+
/>
|
|
204
|
+
);
|
|
212
205
|
}
|
|
213
|
-
|
|
206
|
+
};
|
|
214
207
|
|
|
215
208
|
export default SectionList;
|
|
@@ -5,9 +5,9 @@ import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
|
|
|
5
5
|
* A FlashList wrapper that takes a single `style` prop and internally extracts
|
|
6
6
|
* the appropriate style keys into the `contentContainerStyle`
|
|
7
7
|
*/
|
|
8
|
-
const SimpleStyleFlashList =
|
|
8
|
+
const SimpleStyleFlashList = ({ style: styleProp, data, ...rest }) => {
|
|
9
9
|
const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp);
|
|
10
|
-
return (React.createElement(FlashList, {
|
|
11
|
-
}
|
|
10
|
+
return (React.createElement(FlashList, { style: style, contentContainerStyle: contentContainerStyle, data: data, ...rest }));
|
|
11
|
+
};
|
|
12
12
|
export default SimpleStyleFlashList;
|
|
13
13
|
//# sourceMappingURL=SimpleStyleFlashList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleStyleFlashList.js","sourceRoot":"","sources":["SimpleStyleFlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,oBAAoB,GAAG,
|
|
1
|
+
{"version":3,"file":"SimpleStyleFlashList.js","sourceRoot":"","sources":["SimpleStyleFlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAgB,EAC3C,KAAK,EAAE,SAAS,EAChB,IAAI,EACJ,GAAG,IAAI,EAC0C,EAAE,EAAE;IACrD,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GACpC,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACL,oBAAC,SAAS,IACR,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqC,EAC5D,IAAI,EAAE,IAAI,KACN,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -7,28 +7,22 @@ import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
|
|
|
7
7
|
* A FlashList wrapper that takes a single `style` prop and internally extracts
|
|
8
8
|
* the appropriate style keys into the `contentContainerStyle`
|
|
9
9
|
*/
|
|
10
|
-
const SimpleStyleFlashList =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref: React.Ref<FlashList<any>>
|
|
18
|
-
) => {
|
|
19
|
-
const { style, contentContainerStyle } =
|
|
20
|
-
useSplitContentContainerStyles(styleProp);
|
|
10
|
+
const SimpleStyleFlashList = <T extends any>({
|
|
11
|
+
style: styleProp,
|
|
12
|
+
data,
|
|
13
|
+
...rest
|
|
14
|
+
}: Omit<FlashListProps<T>, "contentContainerStyle">) => {
|
|
15
|
+
const { style, contentContainerStyle } =
|
|
16
|
+
useSplitContentContainerStyles(styleProp);
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
);
|
|
18
|
+
return (
|
|
19
|
+
<FlashList
|
|
20
|
+
style={style}
|
|
21
|
+
contentContainerStyle={contentContainerStyle as ContentStyle}
|
|
22
|
+
data={data}
|
|
23
|
+
{...rest}
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
33
27
|
|
|
34
28
|
export default SimpleStyleFlashList;
|
|
@@ -5,9 +5,9 @@ import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
|
|
|
5
5
|
* A FlatList wrapper that takes a single `style` prop and internally extracts
|
|
6
6
|
* the appropriate style keys into the `contentContainerStyle`
|
|
7
7
|
*/
|
|
8
|
-
const SimpleStyleFlatList =
|
|
8
|
+
const SimpleStyleFlatList = ({ style: styleProp, data, ...rest }) => {
|
|
9
9
|
const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp);
|
|
10
|
-
return (React.createElement(FlatList, {
|
|
11
|
-
}
|
|
10
|
+
return (React.createElement(FlatList, { style: style, contentContainerStyle: contentContainerStyle, data: data, ...rest }));
|
|
11
|
+
};
|
|
12
12
|
export default SimpleStyleFlatList;
|
|
13
13
|
//# sourceMappingURL=SimpleStyleFlatList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleStyleFlatList.js","sourceRoot":"","sources":["SimpleStyleFlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,mBAAmB,GAAG,
|
|
1
|
+
{"version":3,"file":"SimpleStyleFlatList.js","sourceRoot":"","sources":["SimpleStyleFlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,mBAAmB,GAAG,CAAgB,EAC1C,KAAK,EAAE,SAAS,EAChB,IAAI,EACJ,GAAG,IAAI,EACyC,EAAE,EAAE;IACpD,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GACpC,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACL,oBAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqB,EAC5C,IAAI,EAAE,IAAI,KACN,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -7,28 +7,22 @@ import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
|
|
|
7
7
|
* A FlatList wrapper that takes a single `style` prop and internally extracts
|
|
8
8
|
* the appropriate style keys into the `contentContainerStyle`
|
|
9
9
|
*/
|
|
10
|
-
const SimpleStyleFlatList =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ref: React.Ref<FlatList>
|
|
18
|
-
) => {
|
|
19
|
-
const { style, contentContainerStyle } =
|
|
20
|
-
useSplitContentContainerStyles(styleProp);
|
|
10
|
+
const SimpleStyleFlatList = <T extends any>({
|
|
11
|
+
style: styleProp,
|
|
12
|
+
data,
|
|
13
|
+
...rest
|
|
14
|
+
}: Omit<FlatListProps<T>, "contentContainerStyle">) => {
|
|
15
|
+
const { style, contentContainerStyle } =
|
|
16
|
+
useSplitContentContainerStyles(styleProp);
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
);
|
|
18
|
+
return (
|
|
19
|
+
<FlatList
|
|
20
|
+
style={style}
|
|
21
|
+
contentContainerStyle={contentContainerStyle}
|
|
22
|
+
data={data}
|
|
23
|
+
{...rest}
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
33
27
|
|
|
34
28
|
export default SimpleStyleFlatList;
|
|
@@ -5,9 +5,9 @@ import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
|
|
|
5
5
|
* A KeyboardAwareScrollView wrapper that takes a single `style` prop and internally extracts
|
|
6
6
|
* the appropriate style keys into the `contentContainerStyle`
|
|
7
7
|
*/
|
|
8
|
-
const SimpleStyleKeyboardAwareScrollView =
|
|
8
|
+
const SimpleStyleKeyboardAwareScrollView = ({ style: styleProp, ...rest }) => {
|
|
9
9
|
const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp);
|
|
10
|
-
return (React.createElement(KeyboardAwareScrollView, {
|
|
11
|
-
}
|
|
10
|
+
return (React.createElement(KeyboardAwareScrollView, { style: style, contentContainerStyle: contentContainerStyle, ...rest }));
|
|
11
|
+
};
|
|
12
12
|
export default SimpleStyleKeyboardAwareScrollView;
|
|
13
13
|
//# sourceMappingURL=SimpleStyleKeyboardAwareScrollView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleStyleKeyboardAwareScrollView.js","sourceRoot":"","sources":["SimpleStyleKeyboardAwareScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,kCAAkC,
|
|
1
|
+
{"version":3,"file":"SimpleStyleKeyboardAwareScrollView.js","sourceRoot":"","sources":["SimpleStyleKeyboardAwareScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,kCAAkC,GAEpC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpC,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GACpC,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACL,oBAAC,uBAAuB,IACtB,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqB,KACxC,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kCAAkC,CAAC"}
|
|
@@ -7,26 +7,19 @@ import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
|
|
|
7
7
|
* A KeyboardAwareScrollView wrapper that takes a single `style` prop and internally extracts
|
|
8
8
|
* the appropriate style keys into the `contentContainerStyle`
|
|
9
9
|
*/
|
|
10
|
-
const SimpleStyleKeyboardAwareScrollView
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}: Omit<KeyboardAwareScrollViewProps, "contentContainerStyle">,
|
|
16
|
-
ref: React.Ref<KeyboardAwareScrollView>
|
|
17
|
-
) => {
|
|
18
|
-
const { style, contentContainerStyle } =
|
|
19
|
-
useSplitContentContainerStyles(styleProp);
|
|
10
|
+
const SimpleStyleKeyboardAwareScrollView: React.FC<
|
|
11
|
+
Omit<KeyboardAwareScrollViewProps, "contentContainerStyle">
|
|
12
|
+
> = ({ style: styleProp, ...rest }) => {
|
|
13
|
+
const { style, contentContainerStyle } =
|
|
14
|
+
useSplitContentContainerStyles(styleProp);
|
|
20
15
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
);
|
|
16
|
+
return (
|
|
17
|
+
<KeyboardAwareScrollView
|
|
18
|
+
style={style}
|
|
19
|
+
contentContainerStyle={contentContainerStyle}
|
|
20
|
+
{...rest}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
31
24
|
|
|
32
25
|
export default SimpleStyleKeyboardAwareScrollView;
|
|
@@ -5,9 +5,9 @@ import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
|
|
|
5
5
|
* A MasonryFlashList wrapper that takes a single `style` prop and internally extracts
|
|
6
6
|
* the appropriate style keys into the `contentContainerStyle`
|
|
7
7
|
*/
|
|
8
|
-
const SimpleStyleMasonryFlashList =
|
|
8
|
+
const SimpleStyleMasonryFlashList = ({ style: styleProp, data, ...rest }) => {
|
|
9
9
|
const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp);
|
|
10
|
-
return (React.createElement(MasonryFlashList, {
|
|
11
|
-
}
|
|
10
|
+
return (React.createElement(MasonryFlashList, { style: style, contentContainerStyle: contentContainerStyle, data: data, ...rest }));
|
|
11
|
+
};
|
|
12
12
|
export default SimpleStyleMasonryFlashList;
|
|
13
13
|
//# sourceMappingURL=SimpleStyleMasonryFlashList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleStyleMasonryFlashList.js","sourceRoot":"","sources":["SimpleStyleMasonryFlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"SimpleStyleMasonryFlashList.js","sourceRoot":"","sources":["SimpleStyleMasonryFlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,2BAA2B,GAAG,CAAgB,EAClD,KAAK,EAAE,SAAS,EAChB,IAAI,EACJ,GAAG,IAAI,EACiD,EAAE,EAAE;IAC5D,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GACpC,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACL,oBAAC,gBAAgB,IACf,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqC,EAC5D,IAAI,EAAE,IAAI,KACN,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|