MCPcopy Create free account
hub / github.com/expo/examples / Todos

Function Todos

with-tinybase/App.js:79–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78// A list component to show all the todos.
79const Todos = () => {
80 const renderItem = ({ item: id }) => <Todo id={id} />;
81 return (
82 <FlatList
83 data={useSortedRowIds(TODO_TABLE, DONE_CELL)}
84 renderItem={renderItem}
85 style={styles.todos}
86 />
87 );
88};
89
90// A button component to delete all the todos, only shows when there are some.
91const ClearTodos = () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected