react-native-unilist 0.2.0 → 2.0.0
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/README.md +86 -128
- package/lib/module/UniList.js +191 -40
- package/lib/module/UniList.js.map +1 -1
- package/lib/module/components/Card.js +134 -47
- package/lib/module/components/Card.js.map +1 -1
- package/lib/module/components/Skeleton.js +92 -0
- package/lib/module/components/Skeleton.js.map +1 -0
- package/lib/module/components/SwipeableItem.js +106 -0
- package/lib/module/components/SwipeableItem.js.map +1 -0
- package/lib/module/components/layouts/CarouselLayout.js +3 -0
- package/lib/module/components/layouts/CarouselLayout.js.map +1 -1
- package/lib/module/components/layouts/GridLayout.js +3 -0
- package/lib/module/components/layouts/GridLayout.js.map +1 -1
- package/lib/module/components/layouts/MasonryLayout.js +3 -0
- package/lib/module/components/layouts/MasonryLayout.js.map +1 -1
- package/lib/module/hooks/usePagination.js +107 -69
- package/lib/module/hooks/usePagination.js.map +1 -1
- package/lib/module/hooks/useSearch.js +48 -75
- package/lib/module/hooks/useSearch.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/theme.js +44 -2
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/typescript/src/UniList.d.ts +79 -17
- package/lib/typescript/src/UniList.d.ts.map +1 -1
- package/lib/typescript/src/components/Card.d.ts +39 -1
- package/lib/typescript/src/components/Card.d.ts.map +1 -1
- package/lib/typescript/src/components/Skeleton.d.ts +20 -0
- package/lib/typescript/src/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/src/components/SwipeableItem.d.ts +27 -0
- package/lib/typescript/src/components/SwipeableItem.d.ts.map +1 -0
- package/lib/typescript/src/components/layouts/CarouselLayout.d.ts +11 -0
- package/lib/typescript/src/components/layouts/CarouselLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/layouts/GridLayout.d.ts +7 -0
- package/lib/typescript/src/components/layouts/GridLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/layouts/MasonryLayout.d.ts +6 -0
- package/lib/typescript/src/components/layouts/MasonryLayout.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePagination.d.ts +32 -5
- package/lib/typescript/src/hooks/usePagination.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useSearch.d.ts +28 -3
- package/lib/typescript/src/hooks/useSearch.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme.d.ts +30 -0
- package/lib/typescript/src/utils/theme.d.ts.map +1 -1
- package/llms.txt +11 -0
- package/package.json +16 -7
package/README.md
CHANGED
|
@@ -1,169 +1,127 @@
|
|
|
1
|
-
# react-native-unilist
|
|
1
|
+
# react-native-unilist v2
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://www.npmjs.com/package/react-native-unilist)
|
|
5
|
-
[](LICENSE)
|
|
3
|
+
Fabric-ready virtualized lists and UI primitives for React Native 0.76+ and React 19+. v2 is designed for modern feeds, AI chat, and strict TypeScript applications without a native module.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
## Why react-native-unilist vs FlatList & FlashList
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
| Capability | react-native-unilist | React Native FlatList | FlashList |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| Primary purpose | Typed, ready-to-compose feeds and AI chat | Low-level built-in virtualized list | High-performance native recycler list |
|
|
10
|
+
| Setup | No additional native dependency | Included with React Native | Additional dependency / platform integration |
|
|
11
|
+
| View recycling | FlatList windowing via `recycleItems`; not native recycling | Virtualization/windowing | Native recycler implementation |
|
|
12
|
+
| AI chat | Built-in non-inverted `chatMode`, bottom alignment, top/bottom pagination callbacks | Build composition manually; `inverted` is commonly used | Build composition manually |
|
|
13
|
+
| Loading and gestures | Built-in skeletons, typed swipe actions, layout-animation option | Build or install separately | Build or install separately |
|
|
14
|
+
| Styling | Cards, `headless`, and NativeWind `className` forwarding | App-owned UI | App-owned UI |
|
|
15
|
+
| Best fit | Teams wanting a typed batteries-included list layer | Maximum platform baseline and control | Lists where native recycling is a hard requirement |
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
Use FlashList when native cell recycling is the deciding requirement. Use FlatList when you want the smallest possible dependency surface. Use UniList when chat/feed behavior, typed utilities, and ready-to-compose UI are the primary needs.
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
- **Super easy**: Minimal code, maximum features.
|
|
15
|
-
- **Beautiful UI**: Pre-built card designs, layouts, and theme system.
|
|
16
|
-
- **SEO Keywords**: React Native List, FlatList, ScrollView, Grid, Masonry, Carousel, Card, Pagination, Search, Theme, Universal List, Best List Library, react-native-unilist
|
|
19
|
+
## Install
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## 📦 Installation
|
|
21
|
-
|
|
22
|
-
```bash
|
|
21
|
+
```sh
|
|
23
22
|
npm install react-native-unilist
|
|
24
|
-
# or
|
|
25
|
-
yarn add react-native-unilist
|
|
26
23
|
```
|
|
27
24
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## ⚡ Quick Example
|
|
25
|
+
Expo SDK versions that use React Native 0.76+ work without extra native setup. Paste these examples into [Expo Snack](https://snack.expo.dev/) to try the API.
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
import { UniList, ElevatedCard } from 'react-native-unilist';
|
|
27
|
+
## Quick start
|
|
34
28
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
];
|
|
29
|
+
```tsx
|
|
30
|
+
import { Text } from 'react-native';
|
|
31
|
+
import { UniList, type UniListProps } from 'react-native-unilist';
|
|
39
32
|
|
|
40
|
-
|
|
41
|
-
data={data}
|
|
42
|
-
renderItem={item => (
|
|
43
|
-
<ElevatedCard title={item.title} subtitle={item.subtitle} />
|
|
44
|
-
)}
|
|
45
|
-
/>
|
|
46
|
-
```
|
|
33
|
+
type Product = { id: string; name: string };
|
|
47
34
|
|
|
48
|
-
|
|
35
|
+
const props: UniListProps<Product> = {
|
|
36
|
+
data: [{ id: '1', name: 'Orbital keyboard' }],
|
|
37
|
+
keyExtractor: item => item.id,
|
|
38
|
+
renderItem: item => <Text>{item.name}</Text>,
|
|
39
|
+
recycleItems: true,
|
|
40
|
+
};
|
|
49
41
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- **FlatList & ScrollView**: Smart switching, best performance
|
|
53
|
-
- **Pre-built Cards**: 5 types × 5 styles (Modern, Classic, Minimal, Material, Neumorphic)
|
|
54
|
-
- **Layouts**: Grid, Masonry, Carousel
|
|
55
|
-
- **Theme System**: Light/Dark + color schemes
|
|
56
|
-
- **Pagination**: Infinite scroll, loading states
|
|
57
|
-
- **Search & Filter**: Built-in hooks, highlight results
|
|
58
|
-
- **Horizontal/Vertical**: Both directions
|
|
59
|
-
- **Loading/Empty States**: Customizable
|
|
60
|
-
- **Imperative API**: Scroll to index/top
|
|
61
|
-
- **TypeScript Support**: Full types
|
|
62
|
-
- **SEO Optimized**: All major list keywords
|
|
42
|
+
export function Products() { return <UniList {...props} />; }
|
|
43
|
+
```
|
|
63
44
|
|
|
64
|
-
|
|
45
|
+
## AI chat mode — no `inverted`
|
|
65
46
|
|
|
66
|
-
|
|
47
|
+
`chatMode` bottom-aligns a short feed and uses `maintainVisibleContentPosition` to preserve the visible message when older messages are prepended. It only follows streaming content when the reader is already near the bottom.
|
|
67
48
|
|
|
68
|
-
```
|
|
69
|
-
|
|
49
|
+
```tsx
|
|
50
|
+
type Message = { id: string; role: 'user' | 'assistant'; text: string };
|
|
70
51
|
|
|
71
|
-
<
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
52
|
+
<UniList<Message>
|
|
53
|
+
chatMode
|
|
54
|
+
data={messages}
|
|
55
|
+
keyExtractor={message => message.id}
|
|
56
|
+
renderItem={message => <MessageBubble {...message} />}
|
|
57
|
+
onLoadOlder={loadOlderMessages}
|
|
58
|
+
onLoadNewer={loadNewerMessages}
|
|
59
|
+
loadingOlder={isLoadingOlder}
|
|
60
|
+
loadingNewer={isLoadingNewer}
|
|
61
|
+
animateLayout
|
|
62
|
+
recycleItems
|
|
63
|
+
/>
|
|
75
64
|
```
|
|
76
65
|
|
|
77
|
-
|
|
78
|
-
```jsx
|
|
79
|
-
import { GridLayout } from 'react-native-unilist';
|
|
80
|
-
<GridLayout columns={2} spacing={12}>...</GridLayout>
|
|
81
|
-
```
|
|
66
|
+
For token streaming, replace the last message immutably. The list preserves a reader’s position unless they are already at the bottom.
|
|
82
67
|
|
|
83
|
-
|
|
84
|
-
```jsx
|
|
85
|
-
import { CarouselLayout } from 'react-native-unilist';
|
|
86
|
-
<CarouselLayout autoplay interval={3000} showDots>...</CarouselLayout>
|
|
87
|
-
```
|
|
68
|
+
## v2 features
|
|
88
69
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
70
|
+
- `recycleItems`: tuned FlatList clipping/windowing defaults to reduce off-screen memory. It is not native view recycling.
|
|
71
|
+
- Dynamic item sizes: omit `getItemLayout`; FlatList measures cells normally.
|
|
72
|
+
- `chatMode`: bottom-aligned, non-inverted bidirectional pagination.
|
|
73
|
+
- `loading`, `skeletonCount`, and `skeletonVariant`: native-driver shimmer placeholders for empty loading states.
|
|
74
|
+
- `swipeActions` and `animateLayout`: dependency-free gestures and layout transitions.
|
|
75
|
+
- `className` and `headless`: NativeWind-friendly props alongside zero-chrome card composition.
|
|
76
|
+
- Strict generic APIs: `UniList<T>`, `usePagination<T>`, and `useSearch<T>` preserve item types.
|
|
94
77
|
|
|
95
|
-
|
|
78
|
+
## Cards and styling
|
|
96
79
|
|
|
97
|
-
|
|
80
|
+
```tsx
|
|
81
|
+
<UniList
|
|
82
|
+
data={rows}
|
|
83
|
+
renderItem={row => <ElevatedCard className="mx-4 my-2" title={row.title} cardStyle="material" />}
|
|
84
|
+
loading={isLoading}
|
|
85
|
+
skeletonVariant="material"
|
|
86
|
+
swipeActions={{ right: { label: 'Delete', color: '#dc2626', onPress: row => remove(row.id) } }}
|
|
87
|
+
/>
|
|
98
88
|
|
|
99
|
-
|
|
100
|
-
import { ThemeManager, useTheme } from 'react-native-unilist';
|
|
101
|
-
ThemeManager.getInstance().setThemeType('dark', 'blue');
|
|
102
|
-
const theme = useTheme();
|
|
89
|
+
<GlassCard headless className="rounded-2xl p-4">{/* your own surface */}</GlassCard>
|
|
103
90
|
```
|
|
104
91
|
|
|
105
|
-
|
|
92
|
+
`className` is forwarded to native surfaces for NativeWind projects. Configure NativeWind in the consuming application; UniList does not bundle a Tailwind runtime.
|
|
106
93
|
|
|
107
|
-
##
|
|
94
|
+
## Performance benchmarks
|
|
108
95
|
|
|
109
|
-
|
|
110
|
-
```jsx
|
|
111
|
-
import { usePagination } from 'react-native-unilist';
|
|
112
|
-
const { data, loading, hasMore, loadMore } = usePagination({ ... });
|
|
113
|
-
```
|
|
96
|
+
Performance depends on row complexity, images, device, and JavaScript workload. v2 does not claim universal frame-rate or “zero blank cell” numbers. Benchmark your release build with the React Native Performance Monitor:
|
|
114
97
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
98
|
+
| Scenario | Recommended configuration | Acceptance target |
|
|
99
|
+
| --- | --- | --- |
|
|
100
|
+
| 1,000 fixed-complexity feed rows | `recycleItems`, stable render/key callbacks | No sustained JS frame drops during a fast fling |
|
|
101
|
+
| Dynamic-height media feed | omit `getItemLayout`, cache image dimensions | No visually persistent blank cells |
|
|
102
|
+
| Streaming chat | `chatMode`, immutable final-row updates | Reader position remains stable away from bottom |
|
|
120
103
|
|
|
121
|
-
|
|
104
|
+
Keep `renderItem`, `keyExtractor`, and `swipeActions` referentially stable when parent renders are frequent. Profile after enabling the New Architecture; no special Fabric or JSI install step is required.
|
|
122
105
|
|
|
123
|
-
##
|
|
106
|
+
## Hooks
|
|
124
107
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
| renderItem | function(item, index) => ReactNode | Render each item |
|
|
130
|
-
| children | ReactNode | For ScrollView mode |
|
|
131
|
-
| spacing | number | Space between items |
|
|
132
|
-
| horizontal | boolean | Horizontal scroll |
|
|
133
|
-
| ListEmptyComponent | ReactNode | Empty state UI |
|
|
134
|
-
| loading | boolean | Loading state |
|
|
135
|
-
| contentContainerStyle| style | Container style |
|
|
108
|
+
```tsx
|
|
109
|
+
const search = useSearch<Product>({ data: products, searchFields: ['name'] });
|
|
110
|
+
const pager = usePagination<Product>({ pageSize: 20, onLoadMore: fetchPage });
|
|
111
|
+
```
|
|
136
112
|
|
|
137
|
-
|
|
138
|
-
| Prop | Type | Description |
|
|
139
|
-
|--------------|-----------|-----------------------------------|
|
|
140
|
-
| type | string | elevated, outlined, filled, ... |
|
|
141
|
-
| cardStyle | string | modern, classic, minimal, ... |
|
|
142
|
-
| title | string | Card title |
|
|
143
|
-
| subtitle | string | Card subtitle |
|
|
144
|
-
| children | ReactNode | Card content |
|
|
145
|
-
| ... | ... | ... |
|
|
113
|
+
`useSearch` safely debounces input and exposes `highlightText()` without mutating generic items. `usePagination` deduplicates overlapping requests and preserves `T` in `setData`.
|
|
146
114
|
|
|
147
|
-
|
|
115
|
+
## AI tool documentation
|
|
148
116
|
|
|
149
|
-
|
|
150
|
-
- [See USAGE_EXAMPLES.md for advanced usage](./USAGE_EXAMPLES.md)
|
|
151
|
-
- [See Example App](./SampleProject/App.tsx)
|
|
117
|
+
See [llms.txt](./llms.txt) for the compact API map and [llms-full.txt](./llms-full.txt) for detailed examples and constraints.
|
|
152
118
|
|
|
153
|
-
|
|
119
|
+
## Compatibility
|
|
154
120
|
|
|
155
|
-
|
|
156
|
-
|
|
121
|
+
- React 19+
|
|
122
|
+
- React Native 0.76+ (New Architecture / Fabric compatible)
|
|
123
|
+
- iOS, Android, and React Native Web where the underlying FlatList APIs are available
|
|
157
124
|
|
|
158
|
-
|
|
125
|
+
## License
|
|
159
126
|
|
|
160
|
-
## 📄 License
|
|
161
127
|
MIT
|
|
162
|
-
|
|
163
|
-
---
|
|
164
|
-
|
|
165
|
-
**Keywords:** react-native, FlatList, ScrollView, List, Grid, Masonry, Carousel, Card, Pagination, Search, Theme, Universal List, Best List Library, react-native-unilist
|
|
166
|
-
|
|
167
|
-
---
|
|
168
|
-
|
|
169
|
-
Made with ❤️ by [SamadK01](https://github.com/SamadK01)
|
package/lib/module/UniList.js
CHANGED
|
@@ -1,25 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
4
|
-
import { FlatList, ScrollView, View } from 'react-native';
|
|
3
|
+
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef } from 'react';
|
|
4
|
+
import { FlatList, LayoutAnimation, ScrollView, SectionList, View } from 'react-native';
|
|
5
|
+
import { SkeletonList } from "./components/Skeleton.js";
|
|
6
|
+
import { SwipeableItem } from "./components/SwipeableItem.js";
|
|
5
7
|
|
|
6
|
-
/**
|
|
8
|
+
/** Visual treatment used by the built-in empty-list loading placeholders. */
|
|
9
|
+
|
|
10
|
+
/** A typed group for `UniList.sections`. @example `{ title: 'Today', data: messages }` */
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Props for {@link UniList}.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <UniList<User> data={users} keyExtractor={user => user.id}
|
|
18
|
+
* renderItem={user => <UserRow user={user} />} recycleItems />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/** Imperative controls exposed through `ref` on {@link UniList}. */
|
|
7
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
24
|
function UniListInner({
|
|
9
25
|
data,
|
|
26
|
+
sections,
|
|
10
27
|
renderItem,
|
|
28
|
+
renderSectionHeader,
|
|
29
|
+
stickySectionHeadersEnabled = true,
|
|
11
30
|
children,
|
|
12
31
|
spacing = 0,
|
|
13
32
|
horizontal = false,
|
|
14
33
|
ListEmptyComponent,
|
|
15
|
-
loading,
|
|
34
|
+
loading = false,
|
|
35
|
+
skeletonCount = 3,
|
|
36
|
+
skeletonVariant = 'modern',
|
|
16
37
|
contentContainerStyle,
|
|
38
|
+
className,
|
|
39
|
+
recycleItems = false,
|
|
40
|
+
animateLayout = false,
|
|
41
|
+
chatMode = false,
|
|
42
|
+
onLoadOlder,
|
|
43
|
+
onLoadNewer,
|
|
44
|
+
loadingOlder = false,
|
|
45
|
+
loadingNewer = false,
|
|
46
|
+
swipeActions,
|
|
47
|
+
onScroll,
|
|
48
|
+
onContentSizeChange,
|
|
49
|
+
onEndReached,
|
|
50
|
+
onEndReachedThreshold,
|
|
51
|
+
getItemLayout,
|
|
17
52
|
...rest
|
|
18
53
|
}, ref) {
|
|
19
54
|
const flatRef = useRef(null);
|
|
55
|
+
const sectionRef = useRef(null);
|
|
20
56
|
const scrollRef = useRef(null);
|
|
21
|
-
|
|
22
|
-
|
|
57
|
+
const isNearBottom = useRef(true);
|
|
58
|
+
const dataRef = useRef(data);
|
|
59
|
+
const sectionsRef = useRef(sections);
|
|
60
|
+
sectionsRef.current = sections;
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
if (animateLayout && dataRef.current !== data) LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
63
|
+
dataRef.current = data;
|
|
64
|
+
}, [animateLayout, data]);
|
|
23
65
|
useImperativeHandle(ref, () => ({
|
|
24
66
|
scrollToIndex: ({
|
|
25
67
|
index,
|
|
@@ -28,74 +70,183 @@ function UniListInner({
|
|
|
28
70
|
if (flatRef.current) flatRef.current.scrollToIndex({
|
|
29
71
|
index,
|
|
30
72
|
animated
|
|
73
|
+
});else sectionRef.current?.scrollToLocation({
|
|
74
|
+
sectionIndex: 0,
|
|
75
|
+
itemIndex: index,
|
|
76
|
+
animated
|
|
31
77
|
});
|
|
32
78
|
},
|
|
33
79
|
scrollToTop: (animated = true) => {
|
|
34
80
|
if (flatRef.current) flatRef.current.scrollToOffset({
|
|
35
81
|
offset: 0,
|
|
36
82
|
animated
|
|
37
|
-
});else if (
|
|
83
|
+
});else if (sectionRef.current) sectionRef.current.scrollToLocation({
|
|
84
|
+
sectionIndex: 0,
|
|
85
|
+
itemIndex: 0,
|
|
86
|
+
animated
|
|
87
|
+
});else scrollRef.current?.scrollTo({
|
|
38
88
|
y: 0,
|
|
39
89
|
animated
|
|
40
90
|
});
|
|
91
|
+
},
|
|
92
|
+
scrollToEnd: (animated = true) => {
|
|
93
|
+
if (flatRef.current) flatRef.current.scrollToEnd({
|
|
94
|
+
animated
|
|
95
|
+
});else if (sectionRef.current) {
|
|
96
|
+
const lastSectionIndex = (sectionsRef.current?.length ?? 1) - 1;
|
|
97
|
+
const lastSection = sectionsRef.current?.[lastSectionIndex];
|
|
98
|
+
sectionRef.current.scrollToLocation({
|
|
99
|
+
sectionIndex: lastSectionIndex,
|
|
100
|
+
itemIndex: Math.max(0, (lastSection?.data.length ?? 1) - 1),
|
|
101
|
+
animated
|
|
102
|
+
});
|
|
103
|
+
} else scrollRef.current?.scrollToEnd({
|
|
104
|
+
animated
|
|
105
|
+
});
|
|
41
106
|
}
|
|
42
107
|
}), []);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
108
|
+
const handleScroll = useCallback(event => {
|
|
109
|
+
const {
|
|
110
|
+
contentOffset,
|
|
111
|
+
contentSize,
|
|
112
|
+
layoutMeasurement
|
|
113
|
+
} = event.nativeEvent;
|
|
114
|
+
isNearBottom.current = horizontal ? contentSize.width - contentOffset.x - layoutMeasurement.width < 48 : contentSize.height - contentOffset.y - layoutMeasurement.height < 48;
|
|
115
|
+
onScroll?.(event);
|
|
116
|
+
}, [horizontal, onScroll]);
|
|
117
|
+
const handleContentSizeChange = useCallback((width, height) => {
|
|
118
|
+
onContentSizeChange?.(width, height);
|
|
119
|
+
if (chatMode && isNearBottom.current) flatRef.current?.scrollToEnd({
|
|
120
|
+
animated: false
|
|
121
|
+
});
|
|
122
|
+
}, [chatMode, onContentSizeChange]);
|
|
123
|
+
const renderListItem = useCallback(({
|
|
124
|
+
item,
|
|
125
|
+
index
|
|
126
|
+
}) => {
|
|
127
|
+
if (!renderItem) return null;
|
|
128
|
+
const isLast = index === (data?.length ?? 0) - 1;
|
|
129
|
+
const cell = /*#__PURE__*/_jsx(View, {
|
|
130
|
+
style: horizontal ? {
|
|
131
|
+
marginRight: isLast ? 0 : spacing
|
|
132
|
+
} : {
|
|
133
|
+
marginBottom: isLast ? 0 : spacing
|
|
51
134
|
},
|
|
52
|
-
children:
|
|
135
|
+
children: renderItem(item, index)
|
|
53
136
|
});
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
137
|
+
return swipeActions ? /*#__PURE__*/_jsx(SwipeableItem, {
|
|
138
|
+
item: item,
|
|
139
|
+
index: index,
|
|
140
|
+
actions: swipeActions,
|
|
141
|
+
children: cell
|
|
142
|
+
}) : cell;
|
|
143
|
+
}, [data?.length, horizontal, renderItem, spacing, swipeActions]);
|
|
144
|
+
if (sections !== undefined && renderItem) {
|
|
145
|
+
return /*#__PURE__*/_jsx(SectionList, {
|
|
146
|
+
ref: sectionRef,
|
|
147
|
+
sections: sections,
|
|
148
|
+
renderItem: ({
|
|
63
149
|
item,
|
|
64
150
|
index
|
|
65
|
-
}) =>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
151
|
+
}) => renderListItem({
|
|
152
|
+
item,
|
|
153
|
+
index,
|
|
154
|
+
separators: {}
|
|
155
|
+
}),
|
|
156
|
+
renderSectionHeader: renderSectionHeader ? ({
|
|
157
|
+
section
|
|
158
|
+
}) => renderSectionHeader(section) : undefined,
|
|
159
|
+
stickySectionHeadersEnabled: stickySectionHeadersEnabled,
|
|
160
|
+
keyExtractor: (_, index) => String(index),
|
|
161
|
+
onScroll: handleScroll,
|
|
69
162
|
showsHorizontalScrollIndicator: false,
|
|
70
163
|
showsVerticalScrollIndicator: false,
|
|
71
164
|
contentContainerStyle: [{
|
|
72
|
-
paddingRight: horizontal ? spacing : 0,
|
|
73
165
|
paddingBottom: spacing
|
|
74
166
|
}, contentContainerStyle],
|
|
167
|
+
className,
|
|
168
|
+
...rest
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
if (data !== undefined && renderItem) {
|
|
172
|
+
const emptyComponent = loading ? /*#__PURE__*/_jsx(SkeletonList, {
|
|
173
|
+
count: skeletonCount,
|
|
174
|
+
variant: skeletonVariant
|
|
175
|
+
}) : ListEmptyComponent;
|
|
176
|
+
const listContentStyle = chatMode ? {
|
|
177
|
+
flexGrow: 1,
|
|
178
|
+
justifyContent: 'flex-end',
|
|
179
|
+
paddingBottom: spacing
|
|
180
|
+
} : horizontal ? {
|
|
181
|
+
paddingRight: spacing
|
|
182
|
+
} : {
|
|
183
|
+
paddingBottom: spacing
|
|
184
|
+
};
|
|
185
|
+
return /*#__PURE__*/_jsx(FlatList, {
|
|
186
|
+
ref: flatRef,
|
|
187
|
+
data: data,
|
|
188
|
+
renderItem: renderListItem,
|
|
189
|
+
horizontal: horizontal,
|
|
190
|
+
ListEmptyComponent: emptyComponent,
|
|
191
|
+
keyExtractor: (_, index) => String(index),
|
|
192
|
+
getItemLayout: getItemLayout,
|
|
193
|
+
removeClippedSubviews: recycleItems || rest.removeClippedSubviews,
|
|
194
|
+
windowSize: recycleItems ? 7 : rest.windowSize,
|
|
195
|
+
maxToRenderPerBatch: recycleItems ? 12 : rest.maxToRenderPerBatch,
|
|
196
|
+
maintainVisibleContentPosition: chatMode ? {
|
|
197
|
+
minIndexForVisible: 0,
|
|
198
|
+
autoscrollToTopThreshold: 24
|
|
199
|
+
} : undefined,
|
|
200
|
+
onScroll: handleScroll,
|
|
201
|
+
onContentSizeChange: handleContentSizeChange,
|
|
202
|
+
onEndReached: info => {
|
|
203
|
+
onEndReached?.(info);
|
|
204
|
+
if (chatMode && !loadingNewer) onLoadNewer?.();
|
|
205
|
+
},
|
|
206
|
+
onEndReachedThreshold: onEndReachedThreshold ?? (chatMode ? 0.15 : undefined),
|
|
207
|
+
onStartReached: chatMode ? () => {
|
|
208
|
+
if (!loadingOlder) onLoadOlder?.();
|
|
209
|
+
} : undefined,
|
|
210
|
+
onStartReachedThreshold: chatMode ? 0.15 : undefined,
|
|
211
|
+
showsHorizontalScrollIndicator: false,
|
|
212
|
+
showsVerticalScrollIndicator: false,
|
|
213
|
+
contentContainerStyle: [listContentStyle, contentContainerStyle],
|
|
214
|
+
className,
|
|
75
215
|
...rest
|
|
76
216
|
});
|
|
77
217
|
}
|
|
78
|
-
|
|
79
|
-
/* ---------- ScrollView fallback ---------- */
|
|
80
218
|
return /*#__PURE__*/_jsx(ScrollView, {
|
|
81
219
|
ref: scrollRef,
|
|
82
220
|
horizontal: horizontal,
|
|
221
|
+
onScroll: handleScroll,
|
|
83
222
|
showsHorizontalScrollIndicator: false,
|
|
84
223
|
showsVerticalScrollIndicator: false,
|
|
85
224
|
contentContainerStyle: [{
|
|
86
|
-
flexDirection: horizontal ? 'row' : 'column'
|
|
87
|
-
paddingRight: horizontal ? spacing : 0,
|
|
88
|
-
paddingBottom: spacing
|
|
225
|
+
flexDirection: horizontal ? 'row' : 'column'
|
|
89
226
|
}, contentContainerStyle],
|
|
227
|
+
className,
|
|
90
228
|
...rest,
|
|
91
|
-
children: React.Children.map(children, (child,
|
|
92
|
-
style: {
|
|
93
|
-
marginRight:
|
|
94
|
-
|
|
229
|
+
children: React.Children.map(children, (child, index) => /*#__PURE__*/_jsx(View, {
|
|
230
|
+
style: horizontal ? {
|
|
231
|
+
marginRight: spacing
|
|
232
|
+
} : {
|
|
233
|
+
marginBottom: spacing
|
|
95
234
|
},
|
|
96
235
|
children: child
|
|
97
|
-
},
|
|
236
|
+
}, index))
|
|
98
237
|
});
|
|
99
238
|
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Typed React Native list for feeds, data grids, and non-inverted AI chat.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* ```tsx
|
|
245
|
+
* const ref = useRef<UniListRef>(null);
|
|
246
|
+
* <UniList<Message> ref={ref} chatMode data={messages}
|
|
247
|
+
* keyExtractor={message => message.id}
|
|
248
|
+
* renderItem={message => <Bubble message={message} />} />
|
|
249
|
+
* ```
|
|
250
|
+
*/
|
|
100
251
|
export const UniList = /*#__PURE__*/forwardRef(UniListInner);
|
|
101
252
|
//# sourceMappingURL=UniList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useImperativeHandle","useRef","FlatList","ScrollView","View","jsx","_jsx","UniListInner","data","renderItem","children","spacing","horizontal","ListEmptyComponent","loading","contentContainerStyle","rest","ref","flatRef","scrollRef","scrollToIndex","index","animated","
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useCallback","useEffect","useImperativeHandle","useRef","FlatList","LayoutAnimation","ScrollView","SectionList","View","SkeletonList","SwipeableItem","jsx","_jsx","UniListInner","data","sections","renderItem","renderSectionHeader","stickySectionHeadersEnabled","children","spacing","horizontal","ListEmptyComponent","loading","skeletonCount","skeletonVariant","contentContainerStyle","className","recycleItems","animateLayout","chatMode","onLoadOlder","onLoadNewer","loadingOlder","loadingNewer","swipeActions","onScroll","onContentSizeChange","onEndReached","onEndReachedThreshold","getItemLayout","rest","ref","flatRef","sectionRef","scrollRef","isNearBottom","dataRef","sectionsRef","current","configureNext","Presets","easeInEaseOut","scrollToIndex","index","animated","scrollToLocation","sectionIndex","itemIndex","scrollToTop","scrollToOffset","offset","scrollTo","y","scrollToEnd","lastSectionIndex","length","lastSection","Math","max","handleScroll","event","contentOffset","contentSize","layoutMeasurement","nativeEvent","width","x","height","handleContentSizeChange","renderListItem","item","isLast","cell","style","marginRight","marginBottom","actions","undefined","separators","section","keyExtractor","_","String","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","paddingBottom","emptyComponent","count","variant","listContentStyle","flexGrow","justifyContent","paddingRight","removeClippedSubviews","windowSize","maxToRenderPerBatch","maintainVisibleContentPosition","minIndexForVisible","autoscrollToTopThreshold","info","onStartReached","onStartReachedThreshold","flexDirection","Children","map","child","UniList"],"sourceRoot":"../../src","sources":["UniList.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAqCC,WAAW,EAAEC,SAAS,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AACjI,SAASC,QAAQ,EAAEC,eAAe,EAAEC,UAAU,EAAEC,WAAW,EAAEC,IAAI,QAAoL,cAAc;AACnQ,SAASC,YAAY,QAAQ,0BAAuB;AACpD,SAASC,aAAa,QAA2B,+BAA4B;;AAE7E;;AAGA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkDA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUA,SAASC,YAAYA,CACnB;EACEC,IAAI;EAAEC,QAAQ;EAAEC,UAAU;EAAEC,mBAAmB;EAAEC,2BAA2B,GAAG,IAAI;EAAEC,QAAQ;EAAEC,OAAO,GAAG,CAAC;EAAEC,UAAU,GAAG,KAAK;EAAEC,kBAAkB;EAClJC,OAAO,GAAG,KAAK;EAAEC,aAAa,GAAG,CAAC;EAAEC,eAAe,GAAG,QAAQ;EAAEC,qBAAqB;EACrFC,SAAS;EAAEC,YAAY,GAAG,KAAK;EAAEC,aAAa,GAAG,KAAK;EAAEC,QAAQ,GAAG,KAAK;EAAEC,WAAW;EACrFC,WAAW;EAAEC,YAAY,GAAG,KAAK;EAAEC,YAAY,GAAG,KAAK;EAAEC,YAAY;EAAEC,QAAQ;EAC/EC,mBAAmB;EAAEC,YAAY;EAAEC,qBAAqB;EAAEC,aAAa;EAAE,GAAGC;AACzD,CAAC,EACtBC,GAAmC,EACnC;EACA,MAAMC,OAAO,GAAGxC,M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