Expo app crashes when attempting to write a new record with Realm SDK

forgot to add expo-dev-client version, since I think it could be relevant

  • 0.8.4

Error log on a fresh template install.
Android SDK reinstalled.

https://pastebin.com/m1Q3jhpR

1 Like

Thanks to all for the information,

I’ve raised the issue internally, engineers are asking if it still behaves the same by using newer SDK releases and Expo 45 and up, namely:

Can you please test and report?

Thanks for the information I checked the following version and it worked for me

1 Like

Thanks @lakshan_karunathilake for the feedback,

@Nick_Martin and @Ben_Ujdur, can you try? You’re the ones on Linux, as opposed to Windows, so it’s still interesting to understand if that was the cause.

1 Like

Thanks @Paolo_Manna, it works flawlessly now that I’ve upgraded to Expo 46 + using that release candidate.
Although I had tried Expo 46 previously which didn’t help, the v11 of realm-js seems to have done the trick.

"dependencies": {
    "@realm/react": "^0.3.1",
    "expo": "~46.0.8",
    "expo-dev-client": "~1.2.1",
    "expo-splash-screen": "~0.16.1",
    "expo-status-bar": "~1.4.0",
    "expo-updates": "~0.14.4",
    "react": "18.0.0",
    "react-dom": "18.0.0",
    "react-native": "0.69.4",
    "react-native-get-random-values": "~1.8.0",
    "react-native-web": "~0.18.7",
    "realm": "^11.0.0-rc.1"
  },

Thanks for the work you and your team do, much appreciated.

1 Like

I will try this soon. I haven’t had much time to do my own testing but I’m encouraged by the reports so far

By matching the packages listed by @Ben_Ujdur, I was able to get the expo app to write a new record without crashing

Thank you to everyone who chimed in and helped. Perhaps this combination of packages could be the default configuration of the expo realm template

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.