
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
react-native-grpc-service
Advanced tools
$ npm install react-native-grpc-service --save
$ react-native link react-native-grpc-service
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-grpc-service
and add RNGrpcService.xcodeproj
libRNGrpcService.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNGrpcServicePackage;
to the imports at the top of the filenew RNGrpcServicePackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-grpc-service'
project(':react-native-grpc-service').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-grpc-service/android')
android/app/build.gradle
:
compile project(':react-native-grpc-service')
React Native Grpc Service can be configured by creating a react-native-grpc-service.json at the root of the project. Depending on the type of a package, the set of valid properties is different.
react-native-grpc-service.json
entry:
{
"protoDirectory": "../server/proto",
"protoFile": "app.proto"
}
app.proto
entry:
service TodoService {
rpc Create (CreateRequest) returns (CreateResponse) {}
}
message CreateRequest {
string name = 1;
}
message CreateResponse {
Todo data = 1;
}
message Todo {
string id = 1;
string name = 2;
}
GrpcService.ts
entry:
import RNGrpcService from 'react-native-grpc-service';
export default new RNGrpcService('localhost:8080');
App.tsx
entry:
import React from 'react';
import GrpcService from './GrpcService';
export default class App extends React.Component {
componentDidMount() {
GrpcService.TodoService.Create({ name: 'test' }).then(response => ...)
}
}
Android features
iOS features
FAQs
React Native Grpc Service
The npm package react-native-grpc-service receives a total of 1 weekly downloads. As such, react-native-grpc-service popularity was classified as not popular.
We found that react-native-grpc-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.