Integration of Taking or Choosing a Photo - gorjanz/rn-treasure-hunt GitHub Wiki

As mentioned before, one of the features needed in the app, is for the user to be able to take a photo at some point in the game. For this, the app needs to support, a way for the user to quickly launch the camera, take a photo, and come straight back into the app, continuing where he left of, or a way to choose a photo, already taken by the devices native camera app, or at some other moment, and use that photo for the use-case.

To support those two scenarios, in the project, the following module is integrated:

https://github.com/marcshilling/react-native-image-picker

A big Thank You to @marcshilling

Instructions on how to integrate, configure the module, and how to use it, are given at its own github page. The way the module is used in the RNTreasureHunt app, is to utilise its options of providing a way for the user to launch the native camera, or to choose the photo. Then the photo is saved to the native CameraRoll, so it can then be found by its uri (unified resource id), and uploaded to our data server.