This is a starter template for gRPC and React Native. It contains backend (Golang) and mobile (React Native) folders.
- Protobuf.js is used for generating proto types and services. See here
- Communication with native is done by passing binary as base64 string (React Native doesn't support TypedArray).
- For iOS SwiftGrpc is used to actually make network calls. It uses low level SwiftGrpc API. See here.
- For android SwiftJava should be implemented the same way at some point. (PR is welcome).
- Protobuf.js support with Typescript.
- Unary calls.
- Unary middlewares.
- Server, Client, Bidirectional streaming.
- Low level native gRPC Swift implementation.
- Low level native gRPC Java implementation.
- Start gRPC backend
cd backend
make container
make start
- Start React Native app
cd mobile
yarn run-ios