#19 SQLite CRUD Example with MVC model in React Native



#19 SQLite CRUD Example with MVC model in React Native

#19 SQLite CRUD Example with MVC model in React Native

– Source code: https://github.com/uit2712/SQLiteSimpleCRUDExample
– Design UI video: https://www.youtube.com/watch?v=c6SSnzhwjZY
– Create, update, delete with SQLite in React Native
– Programming React Native
– Event emitter in React Native
– Navigator in React Native
– MVC in React Native

————–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

THANK YOU FOR WATCHING VIDEO, REMEMBER TO LIKE AND SUBSCRIBE FOR NEW VIDEOS S2 S2

Comments are closed.