Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.07 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.07 KB

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.