-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pure grpc transport not available for React native #1372
Comments
The only way I can think of doing this is via a bridge to the native platform and using a platform native HTTP/2 implementation on each supported platform. This far exceeds the scope of this project, and is not planned. If you want to do this implementing a custom
It is hard to estimate, but my guess is not a lot, because the |
Ok, that makes sense. FYI, I'm reimplementing a project that uses Dart/Flutter, and in this project I was able to use a |
grpc-dart uses dart native implementation of HTTP/2. It doesn't use the platform APIs. React native on the other hand has to use platform native APIs via a bridge, it can only use a subset of web standards otherwise. |
Thanks for the explanation, much appreciated. |
Describe the bug
I'm building a React Native app (with Expo). This app is meant to be deployed on Android and iOS, and it'll be a client to a backend written with connect Go. I'm attempting to use a pure gRPC transport for this app, taking example from the Node section of the docs:
When building my app for Android, I'm getting the following error:
If I do this instead, it works (I can make a client with the transport and I can query my backend):
I have a couple of questions from these observations:
The text was updated successfully, but these errors were encountered: