I can not use more than one RealmProvider ( in case apply for Bubbles Android)

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

      How frequently does the bug occur?

      Always

      Description

      As title, I am implementing Bubbles API for Android.

      In this case, my index.js look like:

      AppRegistry.registerComponent(appName, () => App)
      AppRegistry.registerComponent("BubbleApp", () => AppChatBubble)
      

      Note that: App and AppChatBubble include RealmProvider

      Now is the problem, when close the AppChatBubble instance, it's seem the realm closed for total app, then I got this error Cannot access realm that has been closed on my App

      Let see the AppChatBubble content

      Then App content:

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      I am using Realm react to create RealContext
      

      Can you reproduce the bug?

      Always

      Reproduction Steps

      implementing Android bubble
      implement RealmProvider
      Close once instance

      Version

       "realm": "^11.9.0",
      

      What services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      Android > 10

      Build environment

      Which debugger for React Native: ..

      "@realm/react": "^0.3.2",
      "react": "^18.2.0",
      "react-native": "^0.71.8",
      

      Cocoapods version

      error on Android

            Assignee:
            Unassigned
            Reporter:
            Unito Sync Bot
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: