TheTekton337 / rtn-dev-console

Cross platform terminal Fabric component for react-native using SwiftSH/SwiftTerm (WIP) for iOS and Termux (TODO) for android.
MIT License
0 stars 0 forks source link

rtn-dev-console

Cross-platform terminal Fabric component for React Native, leveraging SwiftSH/SwiftTerm for iOS, with plans for Termux integration on Android. This initial release introduces a powerful tool for integrating SSH terminal functionality into React Native applications.

Note: This component currently supports the new React Native architecture. Support for the legacy architecture may be added based on community requests.

Features

Installation

To add rtn-dev-console to your React Native project, use the following npm command:

npm install rtn-dev-console

Usage

Incorporate the SshTerminal component into your application, configuring it with appropriate props for establishing an SSH connection and handling events:

import React from 'react';
import { SshTerminal } from 'rtn-dev-console';

function App() {
  return (
    <SshTerminal
      host="192.168.1.1"
      port={22}
      username="your_username"
      password="your_password"
      onConnected={() => console.log('Connected')}
      onClosed={() => console.log('Connection closed')}
      style={{ flex: 1 }}
    />
  );
}

This snippet demonstrates the basic setup required to initiate an SSH session.

Props and Events

The SshTerminal component offers a variety of props and event handlers for customizing the SSH session and terminal interface. These include connection details (host, port, username, password), debug options, and callbacks for significant terminal events (onConnect, onClosed, onSizeChanged, etc.).

Caveats

Special Thanks

Acknowledgments to those whose contributions have made this project possible:

Their efforts have significantly contributed to the development and functionality of rtn-dev-console, and we are grateful for their open-source contributions.

Contributing

We welcome contributions in all forms: bug reports, feature suggestions, and pull requests. Your involvement is key to the continued improvement and success of rtn-dev-console.