{"id":4721,"url":"https://github.com/eduedix/react-native-networking","last_synced_at":"2025-08-04T02:31:31.938Z","repository":{"id":34276897,"uuid":"38164590","full_name":"eduedix/react-native-networking","owner":"eduedix","description":"react-native module to download and upload files","archived":false,"fork":false,"pushed_at":"2017-08-07T16:12:54.000Z","size":65,"stargazers_count":106,"open_issues_count":4,"forks_count":22,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-01T01:42:42.655Z","etag":null,"topics":["networking","react-native"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eduedix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-27T15:17:53.000Z","updated_at":"2023-11-14T03:30:40.000Z","dependencies_parsed_at":"2022-09-07T11:51:02.818Z","dependency_job_id":null,"html_url":"https://github.com/eduedix/react-native-networking","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/eduedix/react-native-networking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduedix%2Freact-native-networking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduedix%2Freact-native-networking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduedix%2Freact-native-networking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduedix%2Freact-native-networking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduedix","download_url":"https://codeload.github.com/eduedix/react-native-networking/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduedix%2Freact-native-networking/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268639931,"owners_count":24282678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["networking","react-native"],"created_at":"2024-01-05T20:17:21.298Z","updated_at":"2025-08-04T02:31:31.672Z","avatar_url":"https://github.com/eduedix.png","language":"Objective-C","readme":"### This module is deprecated. Use https://github.com/wkh237/react-native-fetch-blob or https://github.com/johanneslumpe/react-native-fs instead.\n\n# react-native-networking\nA react-native module to download and upload files on iOS and Android.\n\n# Installation\n## Installation (iOS)\nAssuming you're using `cocoapods` to manage your iOS dependencies, add `react-native-networking` as a new dependency: \n\n```\n# Podfile\npod 'react-native-networking', :path =\u003e '../node_modules/react-native-networking'\n```\n\nthen run `pod install` and you're good to go!\n\n## Installation (Android)\n\n* In `android/setting.gradle`\n\n```gradle\n...\ninclude ':RNNetworkingManager', ':app'\nproject(':RNNetworkingManager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-networking/android')\n```\n\n* In `android/app/build.gradle`\n\n```gradle\n...\ndependencies {\n    ...\n    compile project(':RNNetworkingManager')\n}\n```\n\n* register module (in MainActivity.java)\n\n```java\nimport com.learnium.RNNetworkingManager.*;  // \u003c--- import\n\npublic class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {\n  ......\n\n  @Override\n  protected void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    mReactRootView = new ReactRootView(this);\n\n    mReactInstanceManager = ReactInstanceManager.builder()\n      .setApplication(getApplication())\n      .setBundleAssetName(\"index.android.bundle\")\n      .setJSMainModuleName(\"index.android\")\n      .addPackage(new MainReactPackage())\n      .addPackage(new RNNetworkingManagerModule())              // \u003c------ add here\n      .setUseDeveloperSupport(BuildConfig.DEBUG)\n      .setInitialLifecycleState(LifecycleState.RESUMED)\n      .build();\n\n    mReactRootView.startReactApplication(mReactInstanceManager, \"ExampleRN\", null);\n\n    setContentView(mReactRootView);\n  }\n\n  ......\n\n}\n```\n\n(Thanks to @chirag04 for writing the instructions)\n\n### Android Limitations\n\nAndroid currently only supports downloading at the moment.\n\n# Usage\nIn your react-native project, require the module:\n```javascript\n\nvar RNNetworkingManager = require('react-native-networking');\nvar url = 'localhost:3000';\n\n// Example GET request, (download)\nRNNetworkingManager.requestFile(url, {\n    'method':'GET'\n}, function(results) {\n  console.log(results);\n});\n\n// Example POST request, (upload)\nRNNetworkingManager.requestFile(url, {\n    'method': 'POST',\n    'data' : 'pathToYourFileHere'\n}, function(results) {\n    console.log(results);\n});\n```\nThe GET request automatically downloads the file to the `Documents/` in your app. Similarly, the POST request automatically uploads from `Documents/` of your app.\n\n---\n\nPlease feel free to open issues and contribute.\n","funding_links":[],"categories":["Components"],"sub_categories":["Backend"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduedix%2Freact-native-networking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduedix%2Freact-native-networking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduedix%2Freact-native-networking/lists"}