Coder Social home page Coder Social logo

metanart / react-native-grpc-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trackforce/react-native-grpc-starter

0.0 0.0 0.0 16.52 MB

React Native with gRPC

License: MIT License

Shell 0.77% JavaScript 37.96% Ruby 0.39% Python 1.30% Objective-C 4.57% Java 1.20% Go 5.53% TypeScript 31.69% Swift 16.10% Makefile 0.45% Dockerfile 0.05%

react-native-grpc-starter's Introduction

React Native gRPC Starter

This is a starter template for gRPC and React Native. It contains backend (Golang) and mobile (React Native) folders.

How it works

  1. Protobuf.js is used for generating proto types and services. See here
  2. Communication with native is done by passing binary as base64 string (React Native doesn't support TypedArray).
  3. For iOS SwiftGrpc is used to actually make network calls. It uses low level SwiftGrpc API. See here.
  4. For android SwiftJava should be implemented the same way at some point. (PR is welcome).

Features

  • 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.

Run

  1. Start gRPC backend
cd backend
make container
make start
  1. Start React Native app
cd mobile
yarn run-ios

alt text

react-native-grpc-starter's People

Contributors

anjmao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.