Overview
Simple Expo React Native application to quickly get started with React Native RealmDb API, based on the starter template that is provided by Realm. I added a few things, specifically working with relationships in RealmDB since it was really what I was looking for before I started to create the video.
π Application Notes
- Added relationships so there is a project and a project has mutiple tasks associated with it
- added and additional screen which lists the Projects
- Added React Navigation so that we could move between the screens
- Added a new screen that lists all of the Projects that are in the application
- Added the project name to the task list
- Added the number of tasks associated with the Project to the project list
- Added try catch block to capture errors from the
realm.write
blocks - Added code to delete the child
Task
objects of theProject
- I think that the introduction of the Realm Context is mising some helpful support documentation and links along with how to use the new
useQuery
function. - I also think that the documentation on relationships is extremely lacking and I did my best to create something that will show it better
Source Code
aaronksaunders / ReactNativeRealm-Expo-Template
Simple Expo React Native application to quickly get started with Realm, based on the starter template that is provided by Realm
Expo Template Realm React Native Starter Application
Video Link
Simple Expo application to quickly get started with Realm, based on the starter template that is provided by Realm
π Application Notes
- Added relationships so there is a project and a project has mutiple tasks associated with it
- added and additional screen which lists the Projects
- Added React Navigation so that we could move between the screens
- Added a new screen that lists all of the Projects that are in the application
- Added the project name to the task list
- Added the number of tasks associated with the Project to the project list
- Added try catch block to capture errors from the
realm.write
blocks - Added code to delete the child
Task
objects of theProject
- I think that the introduction of the Realm Context is mising some helpful support documentation and links along with how to use the new
useQuery
β¦
Links
- https://www.mongodb.com/community/forums/t/what-are-realm-relationships/147823
- https://docs.mongodb.com/realm/sdk/react-native/examples/define-a-realm-object-model/#define-relationship-properties
- https://stackoverflow.com/questions/69711011/is-there-a-way-to-present-one2many-relation-in-correct-way-in-realm
Top comments (1)
It gives an error saying Did you run "pod install"? when running on android devices. An solution