All Projects → eduedix → React Native Networking

eduedix / React Native Networking

Licence: mit
react-native module to download and upload files

Projects that are alternatives of or similar to React Native Networking

Udp Ue4
Convenience UDP wrapper for Unreal Engine 4
Stars: ✭ 94 (-10.48%)
Mutual labels:  networking
Gossip Python
Implementation of the gossip protocol
Stars: ✭ 100 (-4.76%)
Mutual labels:  networking
Facil.io
Your high performance web application C framework
Stars: ✭ 1,393 (+1226.67%)
Mutual labels:  networking
Fast Path Lede Openwrt
PLEASE GO TO NEW OPENWRT TRUNK BASED SFE FIRMWARE ->
Stars: ✭ 96 (-8.57%)
Mutual labels:  networking
Proxy
C++ TCP Proxy Server
Stars: ✭ 98 (-6.67%)
Mutual labels:  networking
Hover
Async network layer with Combine
Stars: ✭ 101 (-3.81%)
Mutual labels:  networking
Pcapplusplus
PcapPlusPlus is a multiplatform C++ library for capturing, parsing and crafting of network packets. It is designed to be efficient, powerful and easy to use. It provides C++ wrappers for the most popular packet processing engines such as libpcap, WinPcap, DPDK and PF_RING.
Stars: ✭ 1,322 (+1159.05%)
Mutual labels:  networking
Opc Ua Ooi
Object Oriented Internet - C# deliverables supporting a new Machine To Machine (M2M) communication architecture
Stars: ✭ 104 (-0.95%)
Mutual labels:  networking
Solarnetwork
Elegant network abstraction layer in Swift.
Stars: ✭ 99 (-5.71%)
Mutual labels:  networking
Autowire
Automatically configure Wireguard interfaces in distributed system. It supports Consul as backend.
Stars: ✭ 101 (-3.81%)
Mutual labels:  networking
Netfil
A kernel network manager with monitoring and limiting capabilities for macOS. #nsacyber
Stars: ✭ 97 (-7.62%)
Mutual labels:  networking
Kitura Net
Kitura networking
Stars: ✭ 98 (-6.67%)
Mutual labels:  networking
Joynet
high performance network (tcp socket) library for lua, based on https://github.com/IronsDu/brynet and lua coroutine.
Stars: ✭ 101 (-3.81%)
Mutual labels:  networking
Forgenetworkingremastered
In short, Forge Networking is a free and open source multiplayer game (multi-user) networking system that has a very good integration with the Unity game engine. You wanna make a multiplayer game or real time multi-user application? This is the library for you.
Stars: ✭ 1,338 (+1174.29%)
Mutual labels:  networking
Manuf
Parser library for Wireshark's OUI database.
Stars: ✭ 103 (-1.9%)
Mutual labels:  networking
Libpnet
Cross-platform, low level networking using the Rust programming language.
Stars: ✭ 1,322 (+1159.05%)
Mutual labels:  networking
Fastclick
FastClick - A faster version the Click Modular Router featuring batching, advanced multi-processing and improved Netmap and DPDK support (ANCS'15). Check the metron branch for Metron specificities (NSDI'18).
Stars: ✭ 100 (-4.76%)
Mutual labels:  networking
Gnmic
gnmic a gnmi CLI client and collector
Stars: ✭ 105 (+0%)
Mutual labels:  networking
Gke Networking Demos
This project presents a number of best practices for establishing network links between Kubernetes Engine clusters, and exposing cluster services across Google Cloud projects. You will use a set of Deployment Manager templates to create networks, subnets, vpn connections, and Kubernetes Engine clusters.
Stars: ✭ 104 (-0.95%)
Mutual labels:  networking
Windows 10 Hardening
Windows 10 hardening guide without gimmicks
Stars: ✭ 102 (-2.86%)
Mutual labels:  networking

This module is deprecated. Use https://github.com/wkh237/react-native-fetch-blob or https://github.com/johanneslumpe/react-native-fs instead.

react-native-networking

A react-native module to download and upload files on iOS and Android.

Installation

Installation (iOS)

Assuming you're using cocoapods to manage your iOS dependencies, add react-native-networking as a new dependency:

# Podfile
pod 'react-native-networking', :path => '../node_modules/react-native-networking'

then run pod install and you're good to go!

Installation (Android)

  • In android/setting.gradle
...
include ':RNNetworkingManager', ':app'
project(':RNNetworkingManager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-networking/android')
  • In android/app/build.gradle
...
dependencies {
    ...
    compile project(':RNNetworkingManager')
}
  • register module (in MainActivity.java)
import com.learnium.RNNetworkingManager.*;  // <--- import

public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {
  ......

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mReactRootView = new ReactRootView(this);

    mReactInstanceManager = ReactInstanceManager.builder()
      .setApplication(getApplication())
      .setBundleAssetName("index.android.bundle")
      .setJSMainModuleName("index.android")
      .addPackage(new MainReactPackage())
      .addPackage(new RNNetworkingManagerModule())              // <------ add here
      .setUseDeveloperSupport(BuildConfig.DEBUG)
      .setInitialLifecycleState(LifecycleState.RESUMED)
      .build();

    mReactRootView.startReactApplication(mReactInstanceManager, "ExampleRN", null);

    setContentView(mReactRootView);
  }

  ......

}

(Thanks to @chirag04 for writing the instructions)

Android Limitations

Android currently only supports downloading at the moment.

Usage

In your react-native project, require the module:

var RNNetworkingManager = require('react-native-networking');
var url = 'localhost:3000';

// Example GET request, (download)
RNNetworkingManager.requestFile(url, {
    'method':'GET'
}, function(results) {
  console.log(results);
});

// Example POST request, (upload)
RNNetworkingManager.requestFile(url, {
    'method': 'POST',
    'data' : 'pathToYourFileHere'
}, function(results) {
    console.log(results);
});

The GET request automatically downloads the file to the Documents/ in your app. Similarly, the POST request automatically uploads from Documents/ of your app.


Please feel free to open issues and contribute.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].