create-expo-stack 2.14.1 → 2.14.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.
@@ -43,7 +43,7 @@
43
43
  <% } %>
44
44
  <% if (props.stylingPackage?.name === "nativewindui") { %>
45
45
  "@roninoss/icons": "^0.0.4",
46
- "@shopify/flash-list": "1.6.4",
46
+ "@legendapp/list": "^1.0.0-beta.24",
47
47
  "class-variance-authority": "^0.7.0",
48
48
  "clsx": "^2.1.0",
49
49
  "expo-navigation-bar": "~3.0.4",
@@ -1,6 +1,6 @@
1
1
  import { Stack } from 'expo-router';
2
2
  import { useHeaderHeight } from '@react-navigation/elements';
3
- import { FlashList } from '@shopify/flash-list';
3
+ import { LegendList } from '@legendapp/list';
4
4
  import { cssInterop } from 'nativewind';
5
5
  import * as React from 'react';
6
6
  import {
@@ -72,7 +72,7 @@ export default function Home() {
72
72
  <>
73
73
  <Stack.Screen options={{ title: 'Home' }} />
74
74
  <Container>
75
- <FlashList
75
+ <LegendList
76
76
  contentInsetAdjustmentBehavior="automatic"
77
77
  keyboardShouldPersistTaps="handled"
78
78
  data={data}
@@ -84,13 +84,14 @@ export default function Home() {
84
84
  ItemSeparatorComponent={renderItemSeparator}
85
85
  renderItem={renderItem}
86
86
  ListEmptyComponent={COMPONENTS.length === 0 ? ListEmptyComponent : undefined}
87
+ recycleItems
87
88
  />
88
89
  </Container>
89
90
  </>
90
91
  );
91
92
  }
92
93
 
93
- cssInterop(FlashList, {
94
+ cssInterop(LegendList, {
94
95
  className: 'style',
95
96
  contentContainerClassName: 'contentContainerStyle',
96
97
  });
@@ -1,5 +1,5 @@
1
1
  import { useHeaderHeight } from '@react-navigation/elements';
2
- import { FlashList } from '@shopify/flash-list';
2
+ import { LegendList } from '@legendapp/list';
3
3
  import { cssInterop } from 'nativewind';
4
4
  import * as React from 'react';
5
5
  import {
@@ -60,7 +60,7 @@ import { useColorScheme } from '~/lib/useColorScheme';
60
60
  import { useHeaderSearchBar } from '~/lib/useHeaderSearchBar';
61
61
 
62
62
 
63
- cssInterop(FlashList, {
63
+ cssInterop(LegendList, {
64
64
  className: 'style',
65
65
  contentContainerClassName: 'contentContainerStyle',
66
66
  });
@@ -82,7 +82,7 @@ export default function Screen() {
82
82
  : COMPONENTS;
83
83
 
84
84
  return (
85
- <FlashList
85
+ <LegendList
86
86
  contentInsetAdjustmentBehavior="automatic"
87
87
  keyboardShouldPersistTaps="handled"
88
88
  data={data}
@@ -94,6 +94,7 @@ export default function Screen() {
94
94
  ItemSeparatorComponent={renderItemSeparator}
95
95
  renderItem={renderItem}
96
96
  ListEmptyComponent={COMPONENTS.length === 0 ? ListEmptyComponent : undefined}
97
+ recycleItems
97
98
  />
98
99
  );
99
100
  }
@@ -1,6 +1,6 @@
1
1
  import { Stack } from 'expo-router';
2
2
  import { useHeaderHeight } from '@react-navigation/elements';
3
- import { FlashList } from '@shopify/flash-list';
3
+ import { LegendList } from '@legendapp/list';
4
4
  import { cssInterop } from 'nativewind';
5
5
  import * as React from 'react';
6
6
  import {
@@ -72,7 +72,7 @@ export default function Home() {
72
72
  <>
73
73
  <Stack.Screen options={{ title: 'Tab One' }} />
74
74
  <Container>
75
- <FlashList
75
+ <LegendList
76
76
  contentInsetAdjustmentBehavior="automatic"
77
77
  keyboardShouldPersistTaps="handled"
78
78
  data={data}
@@ -84,13 +84,14 @@ export default function Home() {
84
84
  ItemSeparatorComponent={renderItemSeparator}
85
85
  renderItem={renderItem}
86
86
  ListEmptyComponent={COMPONENTS.length === 0 ? ListEmptyComponent : undefined}
87
+ recycleItems
87
88
  />
88
89
  </Container>
89
90
  </>
90
91
  );
91
92
  }
92
93
 
93
- cssInterop(FlashList, {
94
+ cssInterop(LegendList, {
94
95
  className: 'style',
95
96
  contentContainerClassName: 'contentContainerStyle',
96
97
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-expo-stack",
3
- "version": "2.14.1",
3
+ "version": "2.14.2",
4
4
  "description": "CLI tool to initialize a React Native application with Expo",
5
5
  "repository": {
6
6
  "type": "git",