mirror of
https://github.com/zhigang1992/examples.git
synced 2026-06-13 17:16:33 +08:00
26 lines
1002 B
Markdown
26 lines
1002 B
Markdown
# SQLite Example
|
|
|
|
<p>
|
|
<!-- iOS -->
|
|
<img alt="Supports Expo iOS" longdesc="Supports Expo iOS" src="https://img.shields.io/badge/iOS-4630EB.svg?style=flat-square&logo=APPLE&labelColor=999999&logoColor=fff" />
|
|
<!-- Android -->
|
|
<img alt="Supports Expo Android" longdesc="Supports Expo Android" src="https://img.shields.io/badge/Android-4630EB.svg?style=flat-square&logo=ANDROID&labelColor=A4C639&logoColor=fff" />
|
|
</p>
|
|
|
|
Example demonstrating use of the `SQLite` API in Expo.
|
|
|
|
The app allows adding todo items, marking them as done, and deleting done items.
|
|
`SQLite` features used include creating and opening databases, creating tables,
|
|
inserting items, querying and displaying results, using prepared statements.
|
|
|
|

|
|
|
|
## 🚀 How to use
|
|
|
|
- Run `yarn` or `npm install`
|
|
- Run [`expo start`](https://docs.expo.io/versions/latest/workflow/expo-cli/), try it out.
|
|
|
|
## 📝 Notes
|
|
|
|
- [Expo SQLite docs](https://docs.expo.io/versions/latest/sdk/sqlite/)
|