open-index/open-npm huggingface dataset:
npm package: @krishnafkh/react-native-grpc
Description: gRPC for react-native
Author: Krishna
Latest version: 1.0.7

# react-native-grpc

gRPC for react-native

## Installation

```sh
npm install @krishnafkh/react-native-grpc
```

## Usage

```ts
import { GrpcClient, GrpcMetadata } from '@krishnafkh/react-native-grpc';

GrpcClient.setHost('example.com');

// Bring your own protobuf library
// This example uses https://github.com/timostamm/protobuf-ts

const request = ExampleRequest.create({
  message: 'Hello World!',
});

const data: Uint8Array = ExampleRequest.toBinary(request);
const headers: GrpcMetadata = {};

const { response } = await GrpcClient.unaryCall(
  '/example.grpc.service.Examples/SendExampleMessage',
  data,
  headers
);

const responseMessage = ExampleMessage.fromBinary(response);
```

See `examples` project for more advanced usage.

## Limitations

This library currently only supports unary and server-side streaming type RPC calls. PRs are welcome.

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT
npm package: @krishnakodoth/excel-export
Description: Simple Excel export plugin for react application
Author: @krishnakodoth
Latest version: 2.0.0

# Install

```javascript
npm i @krishnakodoth/excel-export
```

# Usage

```Javascript

import { ExcelExport } from "@krishnakodoth/excel-export";

const App = () => {
  const data=[
    {
      name: "Worksheet-1",
      border: false,
      data: {
        columns: [
          { header: "First Name", key: "firstName" },
          { header: "Last Name", key: "lastName" },
          { header: "Purchase Price", key: "purchasePrice" },
          { header: "Payments Made", key: "paymentsMade" },
        ],
        rows: [
          {
            firstName: "Kylie",
            lastName: "James",
            purchasePrice: 1000,
            paymentsMade: 900,
          },
          {
            firstName: "Harry",
            lastName: "Peake",
            purchasePrice: 1000,
            paymentsMade: 1000,
          },
        ],
      },
    },
    {
      name: "Worksheet-2",
      border: true,
      data: {
        columns: [
          { header: "First Name", key: "firstName" },
          { header: "Last Name", key: "lastName" },
          { header: "Purchase Price", key: "purchasePrice" },
          { header: "Payments Made", key: "paymentsMade" },
        ],
        rows: [
          {
            firstName: "Kylie",
            lastName: "James",
            purchasePrice: 1000,
            paymentsMade: 900,
          },
          {
            firstName: "Harry",
            lastName: "Peake",
            purchasePrice: 1000,
            paymentsMade: 1000,
          },
        ],
      },
    },
  ];
  return (
    <div>
      <ExportExcel
        excelData={data}
        buttonName={'button name'}
        className={'btn btn-primary'}
        fileName={'print_excel_file_name'}
      />
    </div>
  );
}

```