[BREAKGLASS] Append-only mirror of github.com/bluewallet/react-native-camera
Go to file
Jon Thysell 2782a24d25
feat(windows): added barcode scanning support (#2930)
Build:
* Fixed issue with edit and continue debug symbols
* Fixed ReactNativeCameraCPP61 builds
* Added dependency on huycn.zxingcpp.winrt for barcode support

ReactNativeCameraCPP RNCamera component:
* Added onBarCodeRead event support
* Added barCodeScannerEnabled property support
* Added barCodeTypes property support
* Added barCodeReadIntervalMS property to alter how often the scan
  occurs when enabled

ReactNativeCameraCPP RNCamera module:
* Added BarCodeType constants

Other:
* Fixed intermittent issue with thread marshalling
* Re-ran clang formatting

Closes #2830
2020-08-11 15:57:00 -03:00
.circleci ci: changing circle to use rn-orb 2020-05-10 23:17:29 -03:00
.github feat(funding): add FUNDING.yml [skip ci] 2019-06-13 15:13:56 -03:00
android feat(android): use FOCUS_MODE_MACRO if FOCUS_MODE_CONTINOUS_PICTURE is not available and device is scanning (#2912) 2020-07-23 14:06:29 -03:00
docs feat(android): onBarCodeRead should also send raw photo bytes, fixed #2786 (#2923) 2020-07-23 14:04:18 -03:00
examples chore(deps): bump lodash from 4.17.15 to 4.17.19 in /examples/tests (#2902) 2020-07-17 12:00:46 -03:00
ios fix: Fix (iOS) Fixed RNCameraManager.m (#2895) 2020-07-13 08:25:03 -03:00
src feat(android): Added pause and resume recording (#2911) 2020-07-21 18:32:33 -03:00
types feat(android): onBarCodeRead should also send raw photo bytes, fixed #2786 (#2923) 2020-07-23 14:04:18 -03:00
website chore(deps): bump lodash from 4.17.14 to 4.17.19 in /website (#2901) 2020-07-17 08:38:47 -03:00
windows feat(windows): added barcode scanning support (#2930) 2020-08-11 15:57:00 -03:00
.dockerignore feat(docs): Add docusaurus (#2293) 2019-06-02 16:20:35 -03:00
.eslintIgnore feat(test): add on-device tests (#2792) 2020-04-14 20:02:17 -03:00
.eslintrc docs(rn-camera): add rncamera-example without face detection (#1979) [skip ci] 2018-12-11 12:37:48 +01:00
.flowconfig chore(lint): fix lint to make ci work 2018-04-15 08:19:02 -03:00
.gitattributes disable git large files 2018-02-01 11:26:07 -02:00
.gitignore feat(mlkit): Migrate Face, Barcode and Text Recognition to Firebase MLKit (iOS - text, Android - all) (#2075) 2019-03-11 08:56:24 -03:00
.npmignore feat(npm): ignore docs and publish 3.11.0 2019-11-19 23:39:46 -03:00
.prettierrc docs(rn-camera): add rncamera-example without face detection (#1979) [skip ci] 2018-12-11 12:37:48 +01:00
CHANGELOG.md chore(changelog): add link to github releases [skip ci] 2018-11-12 11:26:48 +01:00
commitlint.config.js chore(semantic-release): setup semantic-release for automated publishes (#1898) 2018-11-12 08:46:47 +01:00
docker-compose.yml feat(docs): Add docusaurus (#2293) 2019-06-02 16:20:35 -03:00
Dockerfile feat(docs): Add docusaurus (#2293) 2019-06-02 16:20:35 -03:00
LICENSE Initial commit 2015-03-31 17:54:41 -07:00
package.json chore(release): 3.35.0 [skip ci] 2020-07-23 17:07:52 +00:00
react-native-camera.podspec feat(mlkit): add mlkit barcode detection ios (#2209) 2019-04-16 15:33:46 -03:00
README.md doc(tidelift): add security section on readme 2019-11-08 16:16:54 -03:00
THIRD-PARTY-LICENSES rename expo to simple RN, add js files, and export them inside the same camera package 2018-01-01 19:16:02 -02:00
yarn.lock chore(deps): bump npm from 6.13.4 to 6.14.6 (#2891) 2020-07-07 18:30:20 -03:00

React Native Camera Backers on Open Collective Sponsors on Open Collective npm version npm downloads

Docs

Follow our docs here https://react-native-community.github.io/react-native-camera/

Sponsors

If you use this library on your commercial/personal projects, you can help us by funding the work on specific issues that you choose by using IssueHunt.io!

This gives you the power to prioritize our work and support the project contributors. Moreover it'll guarantee the project will be updated and maintained in the long run.

issuehunt-image

react-native-camera for enterprise

Available as part of the Tidelift Subscription

The maintainers of react-native-camera and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Open Collective

You can also fund this project using open collective

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

The comprehensive camera module for React Native.

Supports:

  • photographs.
  • videos
  • face detection (Android & iOS only)
  • barcode scanning
  • text recognition (optional installation for iOS using CocoaPods)

Example import

import { RNCamera, FaceDetector } from 'react-native-camera';

How to use master branch?

We recommend using the releases from npm, however if you need some features that are not published on npm yet you can install react-native-camera from git.

yarn: yarn add react-native-camera@git+https://git@github.com/react-native-community/react-native-camera.git

npm: npm install --save react-native-camera@git+https://git@github.com/react-native-community/react-native-camera.git

Contributing

  • Pull Requests are welcome, if you open a pull request we will do our best to get to it in a timely manner
  • Pull Request Reviews are even more welcome! we need help testing, reviewing, and updating open PRs
  • If you are interested in contributing more actively, please contact me (same username on Twitter, Facebook, etc.) Thanks!
  • We are now on Open Collective! Contributions are appreciated and will be used to fund core contributors. more details
  • If you want to help us coding, join Expo slack https://slack.expo.io/, so we can chat over there. (#react-native-camera)
Permissions

To use the camera,

  1. On Android you must ask for camera permission:
  <uses-permission android:name="android.permission.CAMERA" />

To enable video recording feature you have to add the following code to the AndroidManifest.xml:

  <uses-permission android:name="android.permission.RECORD_AUDIO"/>
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

5j2jduk

  1. On iOS, you must update Info.plist with a usage description for camera
...
<key>NSCameraUsageDescription</key>
<string>Your own description of the purpose</string>
...
	

For more information on installation, please refer to installation requirements.

For general introduction, please take a look into this RNCamera.

Security contact information

To report a security vulnerability, please use the

Tidelift security contact.

Tidelift will coordinate the fix and disclosure.