136 Commits

Author SHA1 Message Date
Arturs Jansons
41fefdb3f7
#557 Fix documentation about barCodeTypes property 2017-12-20 15:37:57 +03:00
Marcin Wadoń
ea859ca45f (docs): Fix typo in README camera usage description (#1046) 2017-12-14 15:01:42 -08:00
Sibelius Seraphini
241b5d1060
Merge pull request #859 from cbrevik/start-stop-preview
Add start/stopPreview for Camera
2017-12-07 10:48:23 -02:00
Sibelius Seraphini
6bc1de69d7
Merge pull request #746 from superyarik/master
Add onBarCodeRead example
2017-12-07 10:39:49 -02:00
Sibelius Seraphini
7c796d767e
Merge pull request #957 from geoffreyc/master
Added info about autofocus/taptofocus for android
2017-12-07 10:38:09 -02:00
Sibelius Seraphini
36604200e3
Merge pull request #1020 from JSandmark/patch-1
Update Readme that CAMERA permission is requierd
2017-12-07 10:37:20 -02:00
Jon Wilkes
4224c37ce2
Update README.md 2017-12-05 11:47:00 +00:00
Johan Sandmark
d9b1de5db6
Update Readme that CAMERA permission is requierd
Developers are lazy, it would help to clarify to new people that normal camera permissions actually are required. Specially under the headline permissions.
2017-12-03 09:57:46 +01:00
geoffreyc
4bb3f62369 Added info about autofocus/taptofocus for android
Added settings to place into AndroidManifest.xml to get all focus functionalities working 100%
2017-10-24 10:08:41 +01:00
4a6f616f Gracinha
52b11f2d32 Update README.md with NSPhotoLibraryAddUsageDescription (#924)
closes #923
2017-10-15 12:16:02 +02:00
Akshay Kadam
4b4160801e Format Code Blocks (#912)
* Format Code Blocks

* Format Code Blocks
2017-09-28 07:10:58 +02:00
Jonathan Beckman
dc1724507a Update README.md (#883)
took out an unneeded word
2017-09-10 21:18:58 +02:00
mannol
161c568095 (android): Remove nonexistant Android permission (#863)
Android does not have RECORD_VIDEO permission. For a list of available permissions check [this link](https://developer.android.com/reference/android/Manifest.permission.html).
2017-08-29 11:26:19 -07:00
Christian Brevik
1bcf8577a4
Add start/stopPreview for Camera 2017-08-27 18:08:58 +02:00
Michael J Gallagher
2937ecafb9 Install from NPM not GitHub (#823) 2017-08-03 12:22:36 -07:00
Hagen Hübel
7b16017a2e Fixed README for the audio-Property for iOS (#809) 2017-08-01 10:14:42 -07:00
superyarik
7755419215 Create README.md
Add onBarCodeRead example
2017-06-08 15:43:22 +03:00
Zack Story
acc60d3cf8 Update README.md 2017-06-02 12:00:36 -07:00
Xavier Damman
6e840f3ebd Activating Open Collective (#722)
* Added backers and sponsors on the README

* Added call to donate after npm install

* Added template for new issue / pull request
2017-05-25 08:14:37 +01:00
Nick Pomfret
cb4447c60e add fixOrientation option (#682)
* optional fix orientation

* comments

* docs
2017-05-17 10:32:53 -07:00
Seokjun Kim
f783eb0aaf Add totalSeconds description in README.md 2017-05-09 15:26:56 +09:00
Abe Botros
ae9eab3533 (android): Android tap-to-focus and improved (continuous) auto-focus (#575)
* Android tap-to-focus and improved (continuous) auto-focus

Tap-to-focus

- On tap, compute focus area around motion event's location, and pass this to the camera parameters
  as the new focus area.
- Adds RCTCameraUtils.java file, so far with only a single function that helps compute the focus area
  from a motion event. This file can serve as a location for utility constants and functions for the
  rest of the app, where such things can be extracted out.

Improved (continuous) auto-focus

- Use FOCUS_MODE_CONTINUOUS_PICTURE/VIDEO when possible to enable continuous auto-focus; fall back to
  FOCUS_MODE_AUTO otherwise, if able.

Other changes

- Update README to specify differences between iOS and Android for focus and zoom functionality.
- Update AndroidManifest with more thorough list of permissions and features.
- Update Example package.json react and react-native dependencies to match root package's package.json.

* Example: default empty onFocusChanged callback

- Enables default tap-to-focus behavior in Example app, facilitating
  testing of focus features in the Example app
2017-04-24 09:25:49 -07:00
Zack Story
3e2088de79 Update README.md 2017-04-23 12:39:59 -07:00
Joshua Pinter
e187b8a0e7 (android): Update compileSdkVersion to 25 and buildToolsVersion to 25.0.2 (#677)
* Update compileSdkVersion to 25 and buildToolsVersion to 25.0.2

Best to keep these up-to-date. Doesn't affect backwards compatibility.

* Add buildToolsVersion requirement of 25.0.2.
2017-04-23 12:38:42 -07:00
Nick Pomfret
5c54275aec android jpeg compression support (#658)
*  * removed some of the re-parsing of the output image byte array
 * removed re-saving of output file
 * moved image processing onto an async task to allow camera to be used while processing is running

* added jpeg compression support for android

* move explanation to correct bit of docs
2017-04-06 08:28:47 +02:00
Tomas Roos
4d2dcf74a5 Merge pull request #615 from NazarYablonskiy/master
Small, but important changes
2017-03-29 16:30:36 +02:00
Nick Pomfret
98de15cf9a [android] add gps meta to android (#643)
* writing metadata.location (lat and lon coords only) to the exif data... and returning the internal url for the new image (which can be used in conjunction with the RN CameraRoll)

* just a tidy up to remove some duplication and fix some logging (no functional changes)

* oops, fix typo

* docs

* added mediaUri to ios so its the same as android
2017-03-23 08:41:01 -07:00
Nazar Yablonskiy
efd5931fd8 updated Breaking Changes section of README.md 2017-03-07 08:11:59 +02:00
Douglas Duhaime
da68ee86a1 let flexbox resize components (#620) 2017-03-06 10:33:16 -08:00
Nazar Yablonskiy
79ff4688ae upd readme 2017-02-27 21:27:06 +02:00
Mike Monteith
c688c8344c Encourage use of newest version (0.6) (#601) 2017-02-15 10:28:59 -08:00
Andrew Blair
5e9e0edb79 Added important notes about iOS 10 privacy rules
about needing to define strings for `NSCameraUsageDescription` and `NSMicrophoneUsageDescription`
2017-02-06 16:38:18 -08:00
Alejandro Garcia
5ed6b81493 Updated README.md - added missing permission in android manifest (#567) 2017-01-25 11:58:46 -08:00
Derek Hsu
c12fd726a3 Fix barcode type ‘code128’ typo (#563) 2017-01-22 23:20:39 -08:00
Zack Story
fe43f554f1 Update README.md 2017-01-22 19:39:36 -08:00
Zack Story
3053f5cb43 Update README.md 2017-01-22 19:35:13 -08:00
Zack Story
d116d52442 Update README.md 2017-01-06 12:06:02 -08:00
Zack Story
4b089ced6b Update README.md 2017-01-05 23:44:07 -08:00
Paul Ferrett
4babe6573c Fix typo in README.md (#546) 2017-01-05 23:22:18 -08:00
sunnylqm
536d39b33b barcode now supports android (#508) 2016-12-09 12:18:28 -05:00
Ron Heft
fd61e506e5 Document other iOS authorization status methods (#427)
The API already exposes specific methods for checking camera and microphone access individually. These should be documented. Especially since calling `checkDeviceAuthorizationStatus` requests the microphone permission, which is undesirable in photo-only use cases.
2016-11-30 20:25:23 -05:00
Anton Shevchenko
9e06741e94 Include microphone permission key in Info.plist (#488)
* Include microphone permission key in Info.plist

Mention microphone permission (and what to add to `Info.plist) for iOS 10 and up.

* Update README.md
2016-11-28 20:15:42 -05:00
Loch Wansbrough
69d6b5acbf Update README.md 2016-11-23 12:59:36 -08:00
Locly
154cb7aa58 Added Camera.constants.CaptureQuality.preview for android to allow the outputted image to be exactly the same as the previewed image (#449) 2016-11-21 19:41:19 -05:00
Zack Story
e4536fd896 Update README.md 2016-11-20 15:12:45 -08:00
James
6fe07c48ae Explicitly added instructions for the Camera Usage Description for iO… (#478)
* Explicitly added instructions for the Camera Usage Description for iOS 10

* Added NSPhotLib field as well
2016-11-18 17:42:03 -05:00
abrahambotros
a2a6d028a4 Add 1080p, 720p, and 480p capture qualities. (#469)
* Add 1080p, 720p, and 480p capture qualities.

* Minor improvements for picture/video sizing.

- Minor refactoring for getting supported sizes (DRY).
- Add explicit pictureSize setting for 480p/720p/1080p in still/picture mode.

* Use util.Size objects for 480p/720p/1080p sizing.

- Note using Camera.Size objects would require a camera instance prior to creating the
  size objects, which would be manageable but not too clean.

* Remove 480p for iOS; 16:9/HD aspect ratio for Android 480p

- iOS only has a 640x480 480p-like AVCaptureSessionPreset, which is not the typical 16:9/HD aspect ratio
  desired. Removing this option as a result of this.
- Android 480p updated to use 16:9/HD aspect ratio.

* Add notes for (in)exact sizing for 1080p/720p/480p

* Re-add 480p on iOS, more notes on resolutions.

- Add notes on non-HD-aspect-ratio for iOS 480p.
- Add more explanation of variable resolution/sizes, especially for 480p on Android.

* Use custom Resolution class to hold 480p/720p/1080p resolution sizes

- Mistakenly used util.Size class before, which was not added until Android API level 21 (current
  min is 16).
2016-11-18 17:38:23 -05:00
Jonathan Chen
adb26f4524 Default captureAudio to false (#420)
* Default captureAudio to false

Since default captureMode is a still picture, not video. 

This also works around some new iOS 10 permissions requiring notifying the user with a reason for using microphone (which is not good for the user experience if they're just taking a picture). Reference: https://github.com/lwansbrough/react-native-camera/issues/386#issuecomment-249007206

If you need video and sound, then explicitly pass it through as props in your Camera component.

* Update readme for default audio setting
2016-11-18 17:35:26 -05:00
abrahambotros
b16ec4ab75 Minor Android MediaRecorder, sizing, and file improvements (#477)
Android MediaRecorder:
  - Most importantly, call Camera.unlock() before setting the camera on the
    MediaRecorder instance, and release() not just reset() when releasing the MediaRecorder
    instance!
  - Add comments and notes for preparing and releasing MediaRecorder instance.
  - Add onError callback for errors during recording session.

RCTCameraViewManager, RCTCamera, RCTCameraViewFinder, RCTCameraView:
  - Implement setCaptureMode, preparing camera based on captureMode. Currently, the only step that
    needs to be taken here is setting the recording hint for videos.
  - Handle setting _captureMode instance variable where applicable.

Sizing
  - Determine ViewFinder supported sizes based on actual captureMode (i.e., get supported picture
    sizes when in still capture mode, and get supported video sizes when in video capture mode).

Output files:
  - Get appropriate external storage public directory based on media type (image or video).
  - Minor variable renaming to indicate that both images or videos can be saved.

README:
  - Update captureTarget to indicate that cameraRoll is the actual default for both systems.
  - Small clarification for output data type for deprecated memory captureTarget output.
2016-11-17 22:25:51 -08:00
Livio Bieri
fb3b12b4f1 README: Updated Requirements for iOS 10 (#445) 2016-10-12 20:35:13 -04:00