rn-grpc-bridge is a code generator (v0.0.12) that creates Swift/Android bridge code and TypeScript interfaces from protobuf definitions for React Native apps using gRPC. It automates the mapping between JavaScript dictionaries and native gRPC types, saving manual boilerplate. Currently supports iOS/Swift unary calls and bridge headers; streaming and Android support are incomplete. Distributed as an npm package, it relies on protobuf compilation but has no runtime dependencies.
npm install rn-grpc-bridgeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generate Swift bridge code from a protobuf file, outputting Swift and TypeScript files to a specified directory.
Use the 'generate' function instead of 'GrpcClient'.
Check the README for up-to-date supported features. Streaming calls will be added in future releases.
Ensure protoc is available in PATH, or specify the path via options.
You must implement the actual gRPC calls using a library like @grpc/grpc-js in React Native (if supported) or use the native bridge.
Run 'npm install rn-grpc-bridge' in your project root.
Update to version >=0.0.10 and use 'import { generate }' or check your import statement.Install protoc via your package manager (e.g., 'brew install protobuf' on macOS) or specify path in options.
Verify the service name in your proto file (case-sensitive). Use the exact name from the proto definition.
No dependency data recorded yet.