gRPC on React Native
I've been working with iOS for a while now, and I'm experiementing with React Native. An obstacle I've come accross is how I can incorporate my gRPC endpoints into React Native, or if that fundamentally is possible. I've tried simply adding the generated node.js code from gRPC in to no avail.
The last answer I got was from last year here.
The Node.js gRPC library uses a native extension written in C++ to do most of the work. The Linking Libraries page in the React Native documentation seems to indicate that such a library can be used on iOS, as long as you link it into your app directly with the rnpm tool.
Maybe the above could ease having to link native code and still be cross-platform.
I am working on gRPC generator tool which will automatically generate Swift/Java proxies https://github.com/anjmao/rn-grpc-bridge
Currently it is already generating Swift Unary calls services. Example https://github.com/anjmao/rn-grpc-bridge/blob/master/examples/dist/book_grpc_pb_service.swift