{"id":4730,"url":"https://github.com/szq4119/react-native-async-http","last_synced_at":"2025-08-04T02:31:44.087Z","repository":{"id":49328227,"uuid":"49864219","full_name":"szq4119/react-native-async-http","owner":"szq4119","description":null,"archived":false,"fork":false,"pushed_at":"2016-01-18T09:00:53.000Z","size":12351,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T09:47:09.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/szq4119.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-18T08:55:19.000Z","updated_at":"2022-07-24T13:47:52.000Z","dependencies_parsed_at":"2022-07-26T17:45:17.832Z","dependency_job_id":null,"html_url":"https://github.com/szq4119/react-native-async-http","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/szq4119/react-native-async-http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szq4119%2Freact-native-async-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szq4119%2Freact-native-async-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szq4119%2Freact-native-async-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szq4119%2Freact-native-async-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szq4119","download_url":"https://codeload.github.com/szq4119/react-native-async-http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szq4119%2Freact-native-async-http/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":[],"created_at":"2024-01-05T20:17:21.581Z","updated_at":"2025-08-04T02:31:41.527Z","avatar_url":"https://github.com/szq4119.png","language":"Java","funding_links":[],"categories":["Components"],"sub_categories":["Backend"],"readme":"# react-native-async-http\n\n ###Asynchronous Http Client for Android \u003cbr/\u003e\n[https://github.com/loopj/android-async-http](https://github.com/loopj/android-async-http)\n## Installation\n\n```bash\nnpm install react-native-async-http@latest --save\n```\n\n## Getting started - Android\n\n* In `android/setting.gradle`\n\n```gradle\n...\ninclude ':react-native-async-http'\nproject(':react-native-async-http').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-async-http/android')\n```\n\n* In `android/app/build.gradle`\n\n```gradle\n...\ndependencies {\n    ...\n    compile project(':react-native-async-http')\n}\n```\n\n* register module (in MainActivity.java)\n\n```java\nimport com.smccz.asynchttp.AsyncHttpAndroidPackage; // \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 AsyncHttpAndroidPackage())         // \u003c------ add here\n      .setUseDeveloperSupport(BuildConfig.DEBUG)\n      .setInitialLifecycleState(LifecycleState.RESUMED)\n      .build();\n\n    mReactRootView.startReactApplication(mReactInstanceManager, \"example\", null);\n\n    setContentView(mReactRootView);\n  }\n\n  ......\n\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszq4119%2Freact-native-async-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszq4119%2Freact-native-async-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszq4119%2Freact-native-async-http/lists"}