Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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
https://github.com/aaronksaunders/reactnativerealm-expo-template
expo mongodb react react-native realm-mobile-database realm-react-native realmdb
Last synced: about 2 months ago
JSON representation
Simple Expo React Native application to quickly get started with Realm, based on the starter template that is provided by Realm
- Host: GitHub
- URL: https://github.com/aaronksaunders/reactnativerealm-expo-template
- Owner: aaronksaunders
- Created: 2022-02-27T01:38:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-27T23:39:01.000Z (almost 3 years ago)
- Last Synced: 2023-03-11T14:08:04.330Z (almost 2 years ago)
- Topics: expo, mongodb, react, react-native, realm-mobile-database, realm-react-native, realmdb
- Language: JavaScript
- Homepage: https://dev.to/aaronksaunders/getting-started-with-realm-for-react-native-using-expo-template-enhanced-33d
- Size: 441 KB
- Stars: 17
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Expo Template Realm React Native Starter Application
## Video Link
- https://www.youtube.com/watch?v=5BwIpiC2H4ESimple 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 the `Project`
- 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## 🏃 How to build and run locally
- [Setup development Environment](https://reactnative.dev/docs/environment-setup)
- Build/Run on iOS 🍎
```
yarn ios
```
```
npm run ios
```
- Build/Run on Android 🤖
```
yarn android
```
```
npm run android
```## 📝 Notes
- [Setting up Sync](https://docs.mongodb.com/realm/sdk/react-native/quick-start/)
- [Realm JS Documentation](https://docs.mongodb.com/realm/sdk/react-native/)
- [Development Client docs](https://docs.expo.dev/clients/introduction/)
- [Building with EAS](https://docs.expo.dev/eas/)