Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from "react";
import {
ScrollView,
StyleSheet,
Text,
View,
TextInput,
TouchableOpacity
} from "react-native";
import Constants from "expo-constants";
import { SQLite } from "expo-sqlite";
const db = SQLite.openDatabase("db.db");
class Items extends React.Component {
state = {
items: null
};
componentDidMount() {
this.update();
}
render() {
const { done: doneHeading } = this.props;
const { items } = this.state;
const heading = doneHeading ? "Completed" : "Todo";
if (items === null || items.length === 0) {