Realm
complete
Kacper Golinski
It would be great to have out of the box support for realm database.
link: https://realm.io/
Evan Bacon
complete
I can confirm that Realm works with custom dev clients.
Here is an expo/example you can use to get started today--courtesy of the Realm team.
You can read more about the feature here: Build an Offline-First React Native Mobile App with Expo and Realm.
We won't be adding Realm to the Expo Go app (that you download from the App Store or Google Play Store) since we are limiting the amount of native third-party services that we include by default.
Evan Bacon
complete
I can confirm that Realm works with custom dev clients.
Here is an expo/example you can use to get started today--courtesy of the Realm team.
You can read more about the feature here: Build an Offline-First React Native Mobile App with Expo and Realm.
We won't be adding Realm to the Expo Go app (that you download from the App Store or Google Play Store) since we are limiting the amount of native third-party services that we include by default.
Carlton Howell
Evan Bacon: this is huge!! Thanks so much :)
Victor Rolando Sanchez Jara
Evan Bacon: Awesome
David Richards
Evan Bacon: Very good! Really appreciate the work that's been put in. Completely understand the avoidance of direct integration to Expo Go.
N
Nathalia Rus
Evan Bacon: That is awesome, thanks so much
A
Alireza Ghamkhar
Evan Bacon: about the "limiting the amount of native third-party services", is there a list or schedule which indicate what packages are going to be removed. this can help teams decide whether it's needed to migrate to custom-dev-clients?
Carlton Howell
Anyone have a robust workflow with Realm and Expo yet? I saw this post and thought it was interesting: https://www.mongodb.com/developer/how-to/build-offline-first-react-native-mobile-app-with-expo-and-realm/
Andre Costa
Forgive my ignorance, I'm new with Expo development. Would RealmDB work with Bare Workflow mode already or would it be problematic and I should wait for the integrated version? Thanks.
yan li
Andre Costa: not yet
Vipin Joshi
I'm trying to Integrate Realm DB with expo using expo-dev-client.
I've followed all the steps correctly as its written on expo docs [ to integrate a react-native package into an expo project]
& all its working fine for at some points.
I can be able to insert data on db.
but while reading data from db its sending me back a list of empty objects.
Here my code snippets, is anybody also face this issue?
Graeme Maciver
Vipin Joshi: Yeah, checkout my comment below - it's a clash with Reanimated
Gaurav Harchwani
I keep getting this error for Realm. I am using custom dev client. Anybody else faced same issue? Evan Bacon
Lucky Fire
Any news?
Gaurav Harchwani
Whats the status on this Evan Bacon.....I am planning to use expo for my engineering team on a large scale project however we need to use realm. Any chance if realm.io is already compatible with EXPO?
Evan Bacon
Gaurav Harchwani: Graeme Maciver has a comment about getting it working in dev clients with a few caveats. Realm will only be available in custom dev clients / managed EAS for the foreseeable future, but we've invested a lot of time into making that workflow really solid so it should be pretty nice. You can try it locally with
expo run:ios
or expo run:android
and just ignore the native folders.Many groups like Segment are starting to build versions of their packages on top of Expo primitives (like using expo-sqlite instead of a package that reimplements the native code in expo-sqlite), which makes them available in Expo Go, if Segment is interested in doing this we'd be happy to help.
Wodin
Evan Bacon: Did you mean "If
Realm
is interested in doing this..."?Wodin
From a quick look at the docs it does not look to me like it needs a config plugin. sebas tian, Henrique Bruno Fantauzzi de Almeida maybe just give it a try using a Custom Dev Client and EAS Build?
EDIT: I initially said "try using a Config Plugin and EAS Build", but I meant "try using a Custom Dev Client and EAS Build".
Graeme Maciver
Wodin: I have been testing out realm with a custom dev client today and it largely works after installing the realm package from npm, running expo run:android - no need for a config plugin.
I was confused for a while by the docs and thought I had to specify it as a plugin or write something in between, but actually just installing and building the client gave me access.
I have hit an issue reported over on their Github already (currently closed). Results come back as empty looking Objects and I can't interact with the data inside. Seems like a clash with Reanimated 2 or the javascript engines. I am using jsc-intl via @config-plugins/android-jsc-intl on Android and have also tried removing that, aftewards these results returned as a list of empty functions rather than Objects which seemed worse. https://github.com/realm/realm-js/issues/3710#issuecomment-839511661
Really nice that these libraries can be installed relatively easily though!
Edit: There's an open issue on the conflict: https://github.com/realm/realm-js/issues/3837
Gaurav Harchwani
Graeme Maciver: Kinda bit confused if you can help would be grateful. So you mean to say all i have to do is 'npm install' realm's package in expo projects directory and everything works?
Wodin
Gaurav Harchwani: I believe that's what he's saying, yes, but you will need to build the app with EAS Build. It will not work with
expo build:android
/ expo build:ios
.Except of course there's currently some sort of conflict between Realm and Reanimated 2 as Graeme mentioned.
Graeme Maciver
Hey Wodin, Gaurav Harchwani - Yup, that's right. No extra config required but you'll need to build an Expo dev client or use EAS build to actually run an app with Realm included.
Once it's running it generally seems to be working fine but objects returned from Realm are not usable which stops it being usable at all for now.
I have only been testing Android though - you might get further on iOS.
Gaurav Harchwani
Graeme Maciver: Exactly i did the same and without adding realm into plugins of app.json it works. Why is that so? Evan Bacon Will this cause any issues on creating production build for iOS or Android?
yan li
Graeme Maciver: sdk44 has the same issue, any idea ???
Graeme Maciver
yan li: They are working on Hermes support for realm JS which might help overall. I did not have luck with the latest alpha under expo but I also didn't try too hard.
Would keep an eye on the Realm JS issues/github as there's nothing Expo can do to hurry this along and currently no workaround to get it working under Expo I believe.
sebas tian
when can we expect a release of this
Henrique Bruno Fantauzzi de Almeida
sebas tian: I also want to know it. I am sticking with Firebase for my current project, but I want asap to move to Realm. I am sick of many issues and limitations of Firebase I am having for some years.
Realm will be a huge game changer for me that will improve a lot my workflow productivity and even my creativity, as it is less limiting.
Evan Bacon
in progress
We plan to add support to custom dev clients. It might work already, but we want to be sure before considering this feature "complete".
Thomas Poirier
Evan Bacon: great !
Load More
→