{"id":20714416,"url":"https://github.com/vydia/reactnativebackgrounduploadexample","last_synced_at":"2025-04-23T08:51:50.351Z","repository":{"id":22080515,"uuid":"95002007","full_name":"Vydia/ReactNativeBackgroundUploadExample","owner":"Vydia","description":"Example app for react-native-background-upload","archived":false,"fork":false,"pushed_at":"2022-12-07T07:40:14.000Z","size":1861,"stargazers_count":15,"open_issues_count":17,"forks_count":12,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-07-05T16:24:40.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Vydia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-21T12:33:14.000Z","updated_at":"2023-12-10T14:21:55.000Z","dependencies_parsed_at":"2023-01-12T03:46:22.977Z","dependency_job_id":null,"html_url":"https://github.com/Vydia/ReactNativeBackgroundUploadExample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vydia%2FReactNativeBackgroundUploadExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vydia%2FReactNativeBackgroundUploadExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vydia%2FReactNativeBackgroundUploadExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vydia%2FReactNativeBackgroundUploadExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vydia","download_url":"https://codeload.github.com/Vydia/ReactNativeBackgroundUploadExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250403225,"owners_count":21424773,"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","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-11-17T02:31:47.422Z","updated_at":"2025-04-23T08:51:50.333Z","avatar_url":"https://github.com/Vydia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example App for [react-native-background-upload](https://github.com/Vydia/react-native-background-upload)\n\nThis is a React Native app and Express server that servers ars a very basic\nimplementation of react-native-background-upload. Use this repo to experiment\nwith the package, or fork this repo and use it to create a minimal reproduction\nof a bug or other issue when opening up a github issue on\n[react-native-background-upload](https://github.com/Vydia/react-native-background-upload).\n\n## Usage\n\n 1. Clone the repo\n 1. `yarn install`\n 1. `npm run server`\n 1. Run the example app `react-native run-ios` or `react-native run-android`\n 1. Tap the button in the mobile app to perform an upload.\n\nIf you are running on an Android enumlator/device and uploads don't 'just work', run `adb reverse tcp:3000 tcp:3000` after `react-native run-android`.  This will allow the device to communicate with the server.  Otherwise it won't work.\n\n## Important files to look at\n\n### [js/components/Upload.js](https://github.com/Vydia/ReactNativeBackgroundUploadExample/blob/master/js/components/Upload.js)\n\nThe React Native component that allows the user to choose an image from device\nand upload it to the localhost server.\n\n*Note: In the iOS simulator, you can add images and videos to the camera roll by\ndragging and dropping files from finder onto the simulator window. In the Android\nemulator you can usually use the emulator camera app to take test picture.*\n\n### [js/server/index.js](https://github.com/Vydia/ReactNativeBackgroundUploadExample/blob/master/js/server/index.js)\n\nThe express server that receives the upload and writes it to file.\n\n## Common issues\n\n 1. If your server is not getting hit `adb reverse tcp:3000 tcp:3000`\n\n## Working on the react-native-background-upload package\n\nIf you are using this app to make changes to the react-native-background-upload package, you'll probably need to use the react-native-background-upload package from your file system and not from npm.  To do this, edit the package.json to replace the existing version from npm like so:\n```\n\"react-native-background-upload\": \"file:../react-native-background-upload\",\n```\nRemember not to push this to github because it'll work for you but nobody else.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvydia%2Freactnativebackgrounduploadexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvydia%2Freactnativebackgrounduploadexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvydia%2Freactnativebackgrounduploadexample/lists"}