SQLite simple CRUD, apply MVC pattern in React Native
***********YOUTUBE VIDEO: https://www.youtube.com/watch?v=ARHG0uOBOQQ
*****STEPS
--------------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