-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsteps.txt
More file actions
13 lines (13 loc) · 712 Bytes
/
Copy pathsteps.txt
File metadata and controls
13 lines (13 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
--------------SQLite simple CRUD, apply pattern MVC----------------
Example about CRUD Hero
- STEP 1: Install neccessary modules: 'react-navigation', 'react-native-gesture-handler',
'events', 'react-native-vector-icons', 'react-native-sqlite-storage':
+ npm install --save react-navigation react-native-gesture-handler events react-native-vector-icons react-native-sqlite-storage
+ react-native link
- STEP 2: Create db file 'hero-db.sqlite'
- STEP 3: Clone source code from github branch 'master': https://github.com/uit2712/RealmSimpleCRUDExample:
+ Copy folder 'models', 'controllers', 'views', 'navigators' and file 'App.js'
- STEP 4: Edit controller HeroController:
+ Create hero
+ Update hero
+ Delete hero