/ReactNativeBackgroundUploadExample

Example app for react-native-background-upload

Primary LanguageJavaScript

This is a React Native app and Express server that servers ars a very basic implementation of react-native-background-upload. Use this repo to experiment with the package, or fork this repo and use it to create a minimal reproduction of a bug or other issue when opening up a github issue on react-native-background-upload.

Usage

  1. Clone the repo
  2. yarn install
  3. npm run server
  4. Run the example. i.e. react-native run-ios
  5. Tap the button in the mobile app to perform an upload.

Where to look?

The React Native component that allows the user to choose an image from device and upload it to the localhost server.

Note: In the iOS simulator, you can add images and videos to the camera roll by dragging and dropping files from finder onto the simulator window.

The express server that receives the upload and writes it to file.