create-100x-mobile 0.3.1 → 0.3.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.
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
StyleSheet,
|
|
13
13
|
StatusBar,
|
|
14
14
|
} from "react-native";
|
|
15
|
-
import Animated, { LinearTransition } from "react-native-reanimated";
|
|
16
15
|
import { SafeAreaView } from "react-native-safe-area-context";
|
|
17
16
|
import { AddTodoForm } from "@/components/AddTodoForm";
|
|
18
17
|
import { TodoItem } from "@/components/TodoItem";
|
|
@@ -32,8 +31,6 @@ export interface Todo {
|
|
|
32
31
|
|
|
33
32
|
type FilterType = "all" | "active" | "completed";
|
|
34
33
|
|
|
35
|
-
const AnimatedFlatList = Animated.createAnimatedComponent(FlatList<Todo>);
|
|
36
|
-
|
|
37
34
|
export default function TodosScreen() {
|
|
38
35
|
const [filter, setFilter] = useState<FilterType>("all");
|
|
39
36
|
|
|
@@ -119,14 +116,13 @@ export default function TodosScreen() {
|
|
|
119
116
|
}}
|
|
120
117
|
/>
|
|
121
118
|
|
|
122
|
-
<
|
|
119
|
+
<FlatList
|
|
123
120
|
data={filteredTodos}
|
|
124
121
|
renderItem={renderItem}
|
|
125
122
|
keyExtractor={keyExtractor}
|
|
126
123
|
style={styles.todosContainer}
|
|
127
124
|
contentContainerStyle={styles.todosContent}
|
|
128
125
|
showsVerticalScrollIndicator={false}
|
|
129
|
-
itemLayoutAnimation={LinearTransition.springify()}
|
|
130
126
|
ListEmptyComponent={<EmptyState filter={filter} />}
|
|
131
127
|
keyboardShouldPersistTaps="handled"
|
|
132
128
|
/>
|
|
@@ -37,7 +37,7 @@ function packageJsonTemplate(appName) {
|
|
|
37
37
|
"react-dom": "19.1.0",
|
|
38
38
|
"react-native": "0.81.5",
|
|
39
39
|
"react-native-gesture-handler": "~2.28.0",
|
|
40
|
-
"react-native-reanimated": "~
|
|
40
|
+
"react-native-reanimated": "~3.16.1",
|
|
41
41
|
"react-native-safe-area-context": "~5.6.0",
|
|
42
42
|
"react-native-screens": "~4.16.0",
|
|
43
43
|
"react-native-svg": "15.12.1",
|