An open API service indexing awesome lists of open source software.

https://github.com/mybigday/react-native-jsi-udp


https://github.com/mybigday/react-native-jsi-udp

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# react-native-jsi-udp

High performance UDP socket for React Native using JSI.

## Installation

```sh
npm install react-native-jsi-udp
```

### Android

Add this rule if you are using ProGuard:

```proguard
-keep class com.jsiudp.** { *; }
```

### iOS

Add `NSLocalNetworkUsageDescription` to your `Info.plist` if you need do multicast:

```xml
NSLocalNetworkUsageDescription
Allow local network access
```

## Usage

```js
import dgram from 'react-native-jsi-udp';

// The API is like Node's dgram API
const socket = dgram.createSocket('udp4');
```

## Contributing

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

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)

---






Built and maintained by BRICKS.