136 Commits

Author SHA1 Message Date
Gonzalo Aguirre
b01c64e773 Mirror image for Android (#399)
* Add mirrorImage support for Android

* Release resources after mirroring

* Mirror image only for TYPE_FRONT

* Remove unnecessary annotation

* Document mirrorImage for Android

* Improved compression and error handling

* Add support for mirroring on Android back camera too
2016-09-13 09:48:48 -07:00
jacobSingh
2bbdf8ce91 Update README.md (#407) 2016-09-13 02:08:25 -07:00
David
3ff9a5852a Update Readme (#406)
for everyone that links it manually  - see: https://github.com/lwansbrough/react-native-camera/issues/164
2016-09-13 01:21:28 -07:00
Sergio Navarrete Suárez
ae88ac7405 Updates README.md: Manual Android install (#385)
Changes MainActivity.java to MainApplication.java.

For people with little or no Java experience, it also ensures the list returned by getPackages() is separated by a coma.
2016-09-12 20:30:02 -07:00
Marc Johnson
e326d51a53 Android support for recording video (#262)
* Initial commit with Android video support

* stopCapture now works

* Bug fixes and parameter enhancements.  README updated.

* Modified stopCapture parameter count to match iOS

* fixed promise bug on stopCapture

* Update RCTCameraModule.java

In Android preview and recording sizes are different, which can cause an error.  This fix detects the difference and chooses a recording resolution that matches.

* Update RCTCameraModule.java

* Update RCTCamera.java

Creating video functions in style/convention of existing

* Update RCTCameraModule.java

Use new functions for adjusting video capture size and quality

* Update RCTCameraModule.java

Fixes issue where file not video playable (readable) on older devices

* Update AndroidManifest.xml

Since we're reading and writing video and pictures, need permissions for it.

* Fixed upside down camera (on some platforms), and misc bugs and crashes

* Added camera-roll and capture to memory support, new options, and support for duration, filesize, and metadata

* To make merge nicer, temporarily reverting "Added camera-roll and capture to memory support, new options, and support for duration, filesize, and metadata"

This reverts commit 9ea1ad409c7e6121cf0197172e752b7523d4b092.

* Fixed merge & brought back all improvements from 9ea1ad4

* Fixed logic for video -> camera roll

* Updates

* Uncommenting setProfile

* Fix support for React Native 0.25

* Renamed Camera to index

* * Fix after merge android recording

* * Fixed android camera roll file saving
* Added recording to example

* * Android promise rejections with exceptions
* Fixed preview, video and photo sizes
* Android recording result in new, javascript object, format

* * Removed example.index.android.js as there is Example project

* * Readme for example

* don't force a specific codec

* always use cache dir

* * Using MediaScannerConnection instead of ACTION_MEDIA_SCANNER_SCAN_FILE intent

* * As described in https://github.com/lwansbrough/react-native-camera/pull/262#issuecomment-239622268:
- fixed video the wrong direction and recoder start fail at "low,medium" on the nexus 5 x
2016-08-27 21:49:46 -04:00
Jason Marshall
1032370749 rnpm is part of react-native now (#355) 2016-08-01 18:19:41 -07:00
Jonathan Stanton
0d32769dac Add podspec (#329)
* Add podspec file

* Add instructions for CocoaPods
2016-07-02 12:01:43 -07:00
Nicolas Charpentier
e1f04e082a Merge pull request #304 from charpeni/example
Add example
2016-06-14 09:16:25 -04:00
Darryl Blake
b2d9fa904b React, and Component should now be imported from 'react', not 'react-native'. (#297) 2016-06-01 10:30:52 -07:00
Nicolas Charpentier
1024c6bed5 Add example 2016-05-30 11:19:43 -04:00
Zack Story
347d04e843 Update README.md 2016-04-27 20:37:58 -07:00
Zack Story
8d42cd4dde Update README.md 2016-04-27 20:37:48 -07:00
Zack Story
c3ca7cbb03 Merge pull request #270 from lwansbrough/v1
v1 Updates
2016-04-27 20:34:46 -07:00
Jason Brown
75dff8bff1 Add photo documentation (#269) 2016-04-23 12:59:17 -07:00
Zack Story
fae43dd698
[readme] notes for barCodeTypes and playSoundOnCapture 2016-04-23 12:44:41 -07:00
Kyle Corbitt
0c789b8da0
capture returns metadata 2016-04-23 12:44:39 -07:00
cdimascio
a6785cfa46
play shutter click sound on capture (android)
* play shutter click sound on capture (android)

* Add Property playSoundOnCapture to enable whether the default shutter sound is played on capture (Android)
2016-04-10 18:13:01 -07:00
Zack Story
9ac0247f94 Merge pull request #235 from cdimascio/pr/hasFlashAndroid
Add hasFlash support for Android
2016-04-02 19:14:47 -07:00
Dan Horrigan
1406e0630f Add the mirrorImage prop will will mirror the resulting image when true. 2016-03-28 14:40:07 -04:00
Carmine DiMascio
e20902933d Add hasFlash support for Android 2016-03-26 20:27:40 -04:00
Radu Popovici
5659cc7809 add captureQuality option 2016-03-20 21:31:23 +02:00
Loch Wansbrough
8f2fa1e375 Merge pull request #214 from rt2zz/v1doc
add v1/legacy instructions
2016-03-08 10:22:47 -08:00
sunnylqm
bdcd80f35b Aspect.Fill -> Aspect.fill 2016-03-03 10:03:51 +08:00
Zack
1ac4f82d20 add v1/legacy instructions 2016-02-24 10:59:59 -08:00
Loch Wansbrough
d786581d08 Merge pull request #196 from brunobar79/more-barcode-types
Add support for ITF14 and interleaved 2 of 5 barcode types
2016-02-13 15:44:50 -08:00
Bruno Barbieri
9e83ddbc59 update docs 2016-02-13 00:59:29 -05:00
Kyle Corbitt
61b950403d add keepAwake prop 2016-02-08 12:22:37 +00:00
Loch Wansbrough
1feb274458 Updated npm instructions in README 2016-02-03 19:18:00 -08:00
Loch Wansbrough
ab7751ea44 Merge pull request #179 from zackify/patch-1
fixed android path
2016-02-03 11:39:56 -08:00
Loch Wansbrough
93b0d06613 Update README.md 2016-02-03 08:57:25 -08:00
Zach Silveira
dcee7836d1 fixed android path 2016-02-02 21:04:05 -05:00
Lochlan Wansbrough
f5ab0c8432 - Updated Read Me with correct Android install information.
- Fixed promise error during android deployment
2016-01-31 20:56:38 -08:00
Lochlan Wansbrough
edf0736f92 - Updated example
- ES6 stuff
2016-01-31 20:47:59 -08:00
Lochlan Wansbrough
580d11bba0 Documentation update 2016-01-31 20:15:00 -08:00
Lochlan Wansbrough
8f9fd98496 Updated docs. 2016-01-31 19:46:33 -08:00
Loch Wansbrough
1b5de73fe9 Merge pull request #170 from corbt/promises
Switch from callbacks to promises
2016-01-31 18:16:07 -08:00
Kyle Corbitt
45c26869a4 switch from callbacks to promises 2016-01-28 12:13:01 +00:00
Christopher Dro
d0355fe2e6 [Docs] Add capture target temp to readme 2016-01-27 09:55:26 -08:00
Loch Wansbrough
b26f9a92d4 Merge pull request #161 from farmisen/docu
Adding instructions for getting started on android.
2016-01-25 11:15:05 -08:00
Fabrice Armisen
37dc9af97a Removing the "ios only" mention 2016-01-25 10:33:10 -08:00
Fabrice Armisen
c8966280b1 Adding Android instructions to get started 2016-01-24 19:36:29 -08:00
Loch Wansbrough
e68dd966ef Added Gitter
Fixes #148
2016-01-12 15:01:05 -08:00
Brad Bumbalough
8e1ae7c9a4 Corrected docs heading 2015-12-22 16:47:03 -05:00
Brad Bumbalough
4e34fff32e Added method to Camera to expose the CameraManager checkDeviceAuthorizationStatus() method. Updated docs. 2015-12-22 16:45:17 -05:00
Loch Wansbrough
55fc97193c Update README.md 2015-12-11 09:00:42 -08:00
Loch Wansbrough
84f4db97a6 Update README.md 2015-11-05 11:25:27 -08:00
Zachary Lee
70cd5cdc16 Added a step in the 'Getting Started' section
Added the location in which Header Search Paths can be found to make it easier for people that are unfamiliar with XCode to find Header Search Paths.
2015-11-01 16:46:17 -08:00
Loch Wansbrough
beff2e5191 Update README.md 2015-09-22 19:59:10 -07:00
Lochlan Wansbrough
3ea32e5c6e Merge branch 'master' into unknownexception-feature/tap-to-focus 2015-09-22 19:41:40 -07:00
Lochlan Wansbrough
1c97947d23 Merge branch 'feature/tap-to-focus' of git://github.com/unknownexception/react-native-camera into unknownexception-feature/tap-to-focus
# Conflicts:
#	README.md
#	index.ios.js
2015-09-22 19:41:06 -07:00