Skip to content

Tool for creating react native bindings from grpc generated classes

License

Notifications You must be signed in to change notification settings

drivr-old/react-native-grpc-bridge-generator

Repository files navigation

React native grpc protobuf to bridge transpiler

Build Status JavaScript Style Guide codecov

Creating multiple mappers and briges for react native to a grpc service is painful so we created this tool to ease the development pain and automate the procedure.

Getting Started

To create the brige file run

$ babel test-samples/grpc-sample.proto

This will create a files ready to use for communication

output/grpcSample.h
output/grpcSample.m
output/grpcSample-action-types.js
output/grpcSample-flow-types.js
output/grpcSample-actions.js
output/grpcSample-react-native-api-client.js

Next Steps

Make mappings for Android and all primitive types.

Contributing

Feel free to create PR's and issues.

Git conventions

To ensure we can generate a changelog automatically we use the following conventions

  • Commit messages should all be grouped into a category defined by gitmoji
  • Style guide described by Chris Beams

An example of a message adding a new feature would be

git commit -m ':sparkles: Add cool new feature'