如何删除本地SQLite中的数据
我面临一些问题,而且我对react-native和SQLite还是个新手,但是如果create方法是这样的,我如何从数据库中删除数据呢如何删除本地SQLite中的数据,sqlite,react-native,expo,Sqlite,React Native,Expo,我面临一些问题,而且我对react-native和SQLite还是个新手,但是如果create方法是这样的,我如何从数据库中删除数据呢 simpanCatatan = async () => { const { navigation } = this.props const date = new Date() const dateNow = date.getDate() + " " + bulan[date.getMonth()] + " "
simpanCatatan = async () => {
const { navigation } = this.props
const date = new Date()
const dateNow = date.getDate() + " " + bulan[date.getMonth()] + " " + date.getFullYear()
await Catatan.create({
title: this.state.title,
value: this.state.catatan,
user_id: this.state.user_id,
video_id: this.state.idVideo,
video_name: this.state.namaVideo,
materi_id: this.state.idMateri,
created_at:dateNow
})
navigation.goBack()
navigation.state.params.getAllCatatan()
}