[BREAKGLASS] Append-only mirror of github.com/bluewallet/react-native-camera
Go to file
2019-08-08 08:50:33 +02:00
.circleci fix(docs-ci): setting GH_TOKEN_DOCS to deploy docs 2019-06-12 22:38:11 -03:00
.github feat(funding): add FUNDING.yml [skip ci] 2019-06-13 15:13:56 -03:00
android fix(android): Support writing custom Exif tags to modified image file (#2402) 2019-08-03 20:48:36 +02:00
docs fix: App name shouldn't be equal to the registered application (#2393) 2019-08-03 20:48:45 +02:00
examples chore(camera-access): permission android Mlkit 2019-06-22 15:28:18 -03:00
ios Fix two crashes on iOS where error leads to runSession being called before commitConfiguration 2019-08-03 20:47:57 +02:00
src fix(android): Support writing custom Exif tags to modified image file (#2402) 2019-08-03 20:48:36 +02:00
types fix(android): Support writing custom Exif tags to modified image file (#2402) 2019-08-03 20:48:36 +02:00
website chore(docs) setting a label to start to test ci deploy on pages 2019-06-08 21:34:33 -03:00
windows fix(windows): update min sdk version (#2117) 2019-02-19 16:22:03 +01:00
.dockerignore feat(docs): Add docusaurus (#2293) 2019-06-02 16:20:35 -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 fix: exclude android build artifacts (#2001) [skip ci] 2018-12-17 09:56:27 +01: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 v2.11.2 2019-08-08 08:50:33 +02:00
react-native-camera.podspec feat(mlkit): add mlkit barcode detection ios (#2209) 2019-04-16 15:33:46 -03:00
README.md Update README.md 2019-06-22 15:13:11 -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 handlebars from 4.0.12 to 4.1.2 (#2304) 2019-06-06 12:12:27 +02:00

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

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

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)

Tidelift

Get supported react-native-camera with the Tidelift Subscription

tidelift

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.