React Native Tcp Socket screenshot

React Native Tcp Socket

Author Avatar Theme by Rapsssito
Updated: 16 Jan 2026
372 Stars

React Native TCP socket API for Android, iOS & macOS with SSL/TLS support.

Categories

Overview

React-native-tcp-socket is a library that provides a TCP socket API for Android, iOS, and macOS with SSL/TLS support. It allows for the creation of TCP client and server sockets, mimicking Node’s net and Node’s tls API functionalities.

Features

  • Cross-platform: Supports Android, iOS, and macOS.
  • SSL/TLS support: Enables secure communication over TCP sockets.
  • Node.js APIs emulation: Mimics Node’s net and Node’s tls APIs.

Installation

To install the library using npm:

npm install react-native-tcp-socket

To install using Yarn:

yarn add react-native-tcp-socket

For detailed installation instructions for specific platforms, please refer to the official documentation.

Summary

React-native-tcp-socket is a versatile library that simplifies TCP socket management in React Native projects. By offering SSL/TLS support and emulating Node.js APIs, developers can easily integrate secure TCP communication in their applications. The library’s compatibility with major platforms and detailed setup instructions make it a valuable tool for networking tasks.