Skip to content

mybigday/react-native-jsi-udp

Repository files navigation

react-native-jsi-udp

High performance UDP socket for React Native using JSI.

Installation

npm install react-native-jsi-udp

Android

Add this rule if you are using ProGuard:

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

iOS

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

<key>NSLocalNetworkUsageDescription</key>
<string>Allow local network access</string>

Usage

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 to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library


Built and maintained by BRICKS.