File tree Expand file tree Collapse file tree
android/src/main/java/com/reactnativegrpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ gRPC for react-native
55## Installation
66
77``` sh
8- npm npm i @krishnafkh /react-native-grpc
8+ npm install @mitch528 /react-native-grpc
99```
1010
1111## Usage
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class GrpcModule extends ReactContextBaseJavaModule {
3030
3131 private String host ;
3232 private boolean isInsecure = false ;
33- private boolean withComparison = false ;
33+ private boolean withCompression = false ;
3434 private String compressorName = "" ;
3535 private Integer responseSizeLimit = null ;
3636 private ManagedChannel managedChannel = null ;
@@ -67,7 +67,7 @@ public void setInsecure(boolean insecure) {
6767
6868 @ ReactMethod
6969 public void setCompression (Boolean enable , String compressorName ) {
70- this .withComparison = enable ;
70+ this .withCompression = enable ;
7171 this .compressorName = compressorName ;
7272 }
7373
@@ -258,7 +258,7 @@ public void onClose(Status status, Metadata trailers) {
258258 }
259259 }, headersMetadata );
260260
261- if (this .withComparison ) {
261+ if (this .withCompression ) {
262262 call .setMessageCompression (true );
263263 }
264264
Original file line number Diff line number Diff line change 11{
2- "name" : " @krishnafkh /react-native-grpc" ,
3- "version" : " 1.0.1" ,
2+ "name" : " @mitch528 /react-native-grpc" ,
3+ "version" : " 1.0.0- 1" ,
44 "description" : " gRPC for react-native" ,
55 "main" : " lib/commonjs/index" ,
66 "module" : " lib/module/index" ,
3838 " android" ,
3939 " grpc"
4040 ],
41- "repository" : " https://github.com/krishnafkh /react-native-grpc" ,
42- "author" : " Krishna <krishnamani.s@flipkart .com> (https://github.com/krishnafkh/ )" ,
41+ "repository" : " https://github.com/Mitch528 /react-native-grpc" ,
42+ "author" : " Mitch528 <mitch528@gmail .com> (https://github.com/Mitch528 )" ,
4343 "license" : " MIT" ,
4444 "bugs" : {
45- "url" : " https://github.com/krishnafkh /react-native-grpc/issues"
45+ "url" : " https://github.com/Mitch528 /react-native-grpc/issues"
4646 },
47- "homepage" : " https://github.com/krishnafkh /react-native-grpc#readme" ,
47+ "homepage" : " https://github.com/Mitch528 /react-native-grpc#readme" ,
4848 "publishConfig" : {
4949 "access" : " public" ,
5050 "registry" : " https://registry.npmjs.org/"
You can’t perform that action at this time.
0 commit comments