The library currently assumes the host is a React Native app and exposes a RN component. Since there’s no native API (Swift/ObjC or Kotlin) to instantiate a sandbox or exchange messages from fully native code, this approach blocks certain use cases. For instance, it prevents rendering a native Swift chat UI within a sandboxed RN card / visual, which aligns well with the library’s isolation model. However, this is currently not possible without wrapping the sandbox in RN view, introducing unnecessary complexity and performance concerns for host apps.
If this is a feature the team intends to support long-term, I’d be happy to contribute a pull request. Currently, we have a custom solution in our app and would like to use this library instead.
The library currently assumes the host is a React Native app and exposes a RN component. Since there’s no native API (Swift/ObjC or Kotlin) to instantiate a sandbox or exchange messages from fully native code, this approach blocks certain use cases. For instance, it prevents rendering a native Swift chat UI within a sandboxed RN card / visual, which aligns well with the library’s isolation model. However, this is currently not possible without wrapping the sandbox in RN view, introducing unnecessary complexity and performance concerns for host apps.
If this is a feature the team intends to support long-term, I’d be happy to contribute a pull request. Currently, we have a custom solution in our app and would like to use this library instead.