()
| 89 | |
| 90 | // A button component to delete all the todos, only shows when there are some. |
| 91 | const 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. |
| 101 | const App = () => { |
nothing calls this directly
no outgoing calls
no test coverage detected