From 504944c274e8b692b5c2f51afb85d099b9aa651e Mon Sep 17 00:00:00 2001 From: Josh <3142974+rootedsoftware@users.noreply.github.com> Date: Wed, 5 Apr 2023 09:15:23 -0500 Subject: [PATCH] Fixed crash by updating realm to compatible version According to this https://github.com/realm/realm-js/blob/main/COMPATIBILITY.md compatibility chart, Realm needed to have a higher version, this is why it was crashing on load. https://github.com/expo/examples/issues/415. I also noticed that just updating these versions isn't enough to make it work. I had to delete my node_modules, yarn.lock and ios folder, then reinstall and run `yarn ios` to get everything going. --- with-realm/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/with-realm/package.json b/with-realm/package.json index 2de35c9b..3320b9dc 100644 --- a/with-realm/package.json +++ b/with-realm/package.json @@ -5,12 +5,12 @@ "ios": "expo run:ios" }, "dependencies": { - "@realm/react": "^0.1.0", - "expo": "^48.0.7", + "@realm/react": "^0.4.3", + "expo": "^48.0.10", "expo-dev-client": "~2.1.5", "react": "18.2.0", - "react-native": "0.71.3", + "react-native": "0.71.6", "react-native-get-random-values": "~1.8.0", - "realm": "^10.11.0" + "realm": "^11.7.0" } }