react-native-grpc
v1.2.9
Published
TODO
Downloads
95
Readme
react-native-grpc
Getting started
$ npm install react-native-grpc --save
Mostly automatic installation
Copy GrpcService.h, GrpcService.m and GrpcService.podspec from node_modules/react-native-grpc to PROJECT_FOLDER/ios
Add pod 'GrpcService', :path => '.' in Podfile
$ react-native link react-native-grpc
Usage
import Grpc from 'react-native-grpc';
// TODO: What to do with the module?
GrpcInit(ip: string, port: number, events: []);
const deviceId = await DeviceInfo.getUniqueId();
Event.startStream(deviceId);