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

Function ClearTodos

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

Source from the content-addressed store, hash-verified

89
90// A button component to delete all the todos, only shows when there are some.
91const ClearTodos = () => {
92 const handlePress = useDelTableCallback(TODO_TABLE);
93 return useHasTable(TODO_TABLE) ? (
94 <TouchableOpacity onPress={handlePress}>
95 <Text style={styles.clearTodos}>Clear all</Text>
96 </TouchableOpacity>
97 ) : null;
98};
99
100// The main app.
101const App = () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected